private void notifyTestSuiteFinished() { try { StepEventBus.getEventBus().testSuiteFinished(); } catch (Throwable listenerException) { // We report and ignore listener exceptions so as not to mess up the rest of the test mechanics. logger.error("Test event bus error: " + listenerException.getMessage(), listenerException); } }
private void shutdownTestSuite() { StepEventBus.getEventBus().testSuiteFinished(); }
private void shutdownTestSuite() { StepEventBus.getEventBus().testSuiteFinished(); }
public void testSuiteFinished() { notifyEventBus().testSuiteFinished(); context.dropListeners(); context.generateReports(); }
public void testSuiteFinished() { notifyEventBus().testSuiteFinished(); context.dropListeners(); context.generateReports(); }
public void testSuiteFinished() { notifyEventBus().testSuiteFinished(); context.dropListeners(); context.generateReports(); }
private void assureTestSuiteFinished() { stepQueue.clear(); testStepQueue.clear(); java.util.Optional.ofNullable(currentFeaturePath()).ifPresent( featurePath -> { getStepEventBus(featurePath).testSuiteFinished(); getStepEventBus(featurePath).dropAllListeners(); getStepEventBus(featurePath).clear(); StepEventBus.clearEventBusFor(featurePath); } ); Serenity.done(); table = null; currentScenarioId = null; }
private void assureTestSuiteFinished() { stepQueue.clear(); testStepQueue.clear(); java.util.Optional.ofNullable(currentFeaturePath()).ifPresent( featurePath -> { getStepEventBus(featurePath).testSuiteFinished(); getStepEventBus(featurePath).dropAllListeners(); getStepEventBus(featurePath).clear(); StepEventBus.clearEventBusFor(featurePath); } ); Serenity.done(); table = null; currentScenarioId = null; }
@Override public void afterStory(boolean given) { logger.debug("afterStory {}", given); shouldNestScenarios(false); if (given) { givenStoryMonitor.exitingGivenStory(); givenStoryDone(currentStory()); } else { if (isAfterStory(currentStory())) { generateReports(); } else if (!isFixture(currentStory()) && (!isAStoryLevelGiven(currentStory()))) { StepEventBus.getEventBus().testSuiteFinished(); clearListeners(); } } storyStack.pop(); }
public void afterStory(boolean given) { shouldNestScenarios(false); if (given) { givenStoryMonitor.exitingGivenStory(); givenStoryDone(currentStory()); } else { if (isAfterStory(currentStory())) { closeBrowsersForThisStory(); generateReports(); } else if (!isFixture(currentStory()) && !given && (!isAStoryLevelGiven(currentStory()))) { StepEventBus.getEventBus().testSuiteFinished(); clearListeners(); } } storyStack.pop(); }