public void finishQuestion() { StepEventBus.getEventBus().stepFinished(); }
public void reportStepFinished() { StepEventBus.getEventBus().stepFinished(); }
private void notifyStepFinishedFor(final Method method, final Object[] args) { StepEventBus.getEventBus().stepFinished(); }
public void reportStepFinished() { StepEventBus.getEventBus().stepFinished(); }
private void notifyStepFinishedFor(final Method method, final Object[] args) { StepEventBus.getEventBus().stepFinished(); }
private void notifyStepFinishedFor(final Method method, final Object[] args) { StepEventBus.getEventBus().stepFinished(); }
public void successful(String title) { StepEventBus.getEventBus().updateCurrentStepTitle(normalized(title)); StepEventBus.getEventBus().stepFinished(); }
private void handleWrite(WriteEvent event) { getStepEventBus(currentFeaturePath()).stepStarted(ExecutedStepDescription.withTitle(event.text)); getStepEventBus(currentFeaturePath()).stepFinished(); }
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(); } }
@Override public void successful(String title) { if (annotatedResultTakesPriority()) { processAnnotatedResult(); } else { StepEventBus.getEventBus().updateCurrentStepTitle(normalized(title)); StepEventBus.getEventBus().stepFinished(); } }
private void handleWrite(WriteEvent event) { getStepEventBus(currentFeaturePath()).stepStarted(ExecutedStepDescription.withTitle(event.text)); getStepEventBus(currentFeaturePath()).stepFinished(); }
@Override public void afterScenario() { Scenario scenario = currentScenario(); logger.debug("afterScenario : {}", scenario.getTitle()); List<String> scenarioTags = scenarioTags(scenario); markAsSkippedOrPendingIfAnnotatedAsSuchIn(scenarioTags); if (givenStoryMonitor.isInGivenStory() || shouldNestScenarios()) { StepEventBus.getEventBus().stepFinished(); } else { if (!(isPending(scenarioTags) || isSkipped(scenarioTags) || isIgnored(scenarioTags))) { StepEventBus.getEventBus().testFinished(); } activeScenarios.pop(); } ThucydidesWebDriverSupport.clearStepLibraries(); }
public void afterScenario() { if (givenStoryMonitor.isInGivenStory() || shouldNestScenarios()) { StepEventBus.getEventBus().stepFinished(); } else { StepEventBus.getEventBus().testFinished(); if (isPendingScenario() || isPendingStory()) { StepEventBus.getEventBus().setAllStepsTo(TestResult.PENDING); } if (isSkippedScenario() || isSkippedStory()) { StepEventBus.getEventBus().setAllStepsTo(TestResult.SKIPPED); } activeScenarios.pop(); } }
private void recordStepResult(Result result, Step currentStep, TestStep currentTestStep) { if (StepEventBus.getEventBus().currentTestIsSuspended()) { getStepEventBus(currentFeaturePath()).stepIgnored(); } else if (Result.Type.PASSED.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepFinished(); } else if (Result.Type.FAILED.equals(result.getStatus())) { failed(stepTitleFrom(currentStep, currentTestStep), result.getError()); } else if (Result.Type.SKIPPED.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepIgnored(); } else if (Result.Type.PENDING.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepPending(); } else if (Result.Type.SKIPPED.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepIgnored(); } else if (Result.Type.UNDEFINED.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepPending(); } }
private void recordStepResult(Result result, Step currentStep, TestStep currentTestStep) { if (StepEventBus.getEventBus().currentTestIsSuspended()) { getStepEventBus(currentFeaturePath()).stepIgnored(); } else if (Result.Type.PASSED.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepFinished(); } else if (Result.Type.FAILED.equals(result.getStatus())) { failed(stepTitleFrom(currentStep, currentTestStep), result.getError()); } else if (Result.Type.SKIPPED.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepIgnored(); } else if (Result.Type.PENDING.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepPending(); } else if (Result.Type.SKIPPED.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepIgnored(); } else if (Result.Type.UNDEFINED.equals(result.getStatus())) { getStepEventBus(currentFeaturePath()).stepPending(); } }