/** * Start the execution of a test step. */ public void stepStarted(final ExecutedStepDescription stepDescription) { stepStarted(stepDescription, false); }
@Override public void beforeStep(String stepTitle) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(stepTitle)); }
public void reportStepSkippedFor(Performable todo) { ExecutedStepDescription taskDescription = ExecutedStepDescription.of(todo.getClass(),"performAs"); StepEventBus.getEventBus().stepStarted(taskDescription); StepEventBus.getEventBus().stepIgnored(); }
public void reportStepSkippedFor(Performable todo) { ExecutedStepDescription taskDescription = ExecutedStepDescription.of(todo.getClass(),"performAs"); StepEventBus.getEventBus().stepStarted(taskDescription); StepEventBus.getEventBus().stepIgnored(); }
private void notifyStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().stepStarted(description); }
public void startQuestion(String title) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(title).asAQuestion()); }
private void notifyStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().stepStarted(description); }
private void startTestForFirstScenarioIn(Story story) { startScenarioCalled(story.getScenarios().get(0), story); StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle("Preconditions")); shouldNestScenarios(true); }
@Override public void comment(String step) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(step)); StepEventBus.getEventBus().stepIgnored(); }
private void startTestForFirstScenarioIn(Story story) { System.out.println("Starting first test for " + story.getName()); Scenario firstScenario = story.getScenarios().get(0); startScenarioCalled(firstScenario.getTitle()); StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle("Preconditions")); shouldNestScenarios(true); }
@Override public void pending(String stepTitle) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(normalized(stepTitle))); StepEventBus.getEventBus().stepPending(); }
private void notifyStepStarted(final Object object, final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args), args) .withDisplayedFields(fieldValuesIn(object)); StepEventBus.getEventBus().stepStarted(description); }
@Override public void notPerformed(String stepTitle) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(normalized(stepTitle))); StepEventBus.getEventBus().stepIgnored(); }
public final void should(String groupStepName, Consequence... consequences) { try { String groupTitle = injectActorInto(groupStepName); StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(groupTitle)); should(consequences); } catch (Throwable error) { throw error; } finally { StepEventBus.getEventBus().stepFinished(); } }
private void handleWrite(WriteEvent event) { getStepEventBus(currentFeaturePath()).stepStarted(ExecutedStepDescription.withTitle(event.text)); getStepEventBus(currentFeaturePath()).stepFinished(); }
private void startNewStep(String scenarioTitle) { if (givenStoryMonitor.isInGivenStory() && StepEventBus.getEventBus().areStepsRunning()) { StepEventBus.getEventBus().updateCurrentStepTitle(scenarioTitle); } else { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(scenarioTitle)); } }
private void startNewStep(String scenarioTitle) { if (givenStoryMonitor.isInGivenStory() && StepEventBus.getEventBus().areStepsRunning()) { StepEventBus.getEventBus().updateCurrentStepTitleAsPrecondition(scenarioTitle); } else { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(scenarioTitle), givenStoryMonitor.isInGivenStory()); } }
public void exampleStarted(Map<String, String> data) { if (getCurrentTestOutcome().isDataDriven() && !getCurrentTestOutcome().dataIsPredefined()) { getCurrentTestOutcome().addRow(data); } currentExample++; getEventBus().stepStarted(ExecutedStepDescription.withTitle(exampleTitle(currentExample, data))); }
public void exampleStarted(Map<String, String> data) { clearForcedResult(); if (getCurrentTestOutcome().isDataDriven()) { if (!getCurrentTestOutcome().dataIsPredefined()) { getCurrentTestOutcome().addRow(data); } } currentExample++; getEventBus().stepStarted(ExecutedStepDescription.withTitle(exampleTitle(currentExample, data))); }
public void exampleStarted(Map<String, String> data) { clearForcedResult(); if (getCurrentTestOutcome().isDataDriven()) { if (!getCurrentTestOutcome().dataIsPredefined()) { getCurrentTestOutcome().addRow(data); } } currentExample++; if (newStepForEachExample()) { getEventBus().stepStarted(ExecutedStepDescription.withTitle(exampleTitle(currentExample, data))); } }