/** * An individual test starts. * * @param testMethod the name of the test method in the test suite class. */ public void testStarted(final String testMethod) { TestOutcome newTestOutcome = TestOutcome.forTestInStory(testMethod, testSuite, testedStory); testOutcomes.add(newTestOutcome); updateSessionIdIfKnown(); setAnnotatedResult(testMethod); }
/** * An individual test starts. * * @param testMethod the name of the test method in the test suite class. */ public void testStarted(final String testMethod) { TestOutcome newTestOutcome = TestOutcome.forTestInStory(testMethod, testSuite, testedStory); testOutcomes.add(newTestOutcome); updateSessionIdIfKnown(); setAnnotatedResult(testMethod); }
/** * A step within a test is called. * This step might be nested in another step, in which case the original step becomes a group of steps. * * @param description the description of the test that is about to be run */ public void stepStarted(final ExecutedStepDescription description) { recordStep(description); takeInitialScreenshot(); updateSessionIdIfKnown(); }
/** * A step within a test is called. * This step might be nested in another step, in which case the original step becomes a group of steps. * * @param description the description of the test that is about to be run */ public void stepStarted(final ExecutedStepDescription description) { recordStep(description); takeInitialScreenshot(); updateSessionIdIfKnown(); }
public void stepFinished() { updateSessionIdIfKnown(); takeEndOfStepScreenshotFor(SUCCESS); currentStepDone(SUCCESS); // markCurrentStepAs(SUCCESS); pauseIfRequired(); }
public void stepFinished() { updateSessionIdIfKnown(); takeEndOfStepScreenshotFor(SUCCESS); currentStepDone(SUCCESS); pauseIfRequired(); }
/** * A test has finished. * * @param outcome the result of the test that just finished. */ public void testFinished(final TestOutcome outcome) { if (getTestOutcomes().isEmpty()) { return; } recordTestDuration(); getCurrentTestOutcome().addIssues(storywideIssues); // TODO: Disable when run from an IDE getCurrentTestOutcome().addTags(storywideTags); if (StepEventBus.getEventBus().isDryRun() || getCurrentTestOutcome().getResult() == IGNORED) { testAndTopLevelStepsShouldBeIgnored(); } if (currentTestIsABrowserTest()) { getCurrentTestOutcome().setDriver(getDriverUsedInThisTest()); updateSessionIdIfKnown(); closeBrowsers.forTestSuite(testSuite).closeIfConfiguredForANew(SCENARIO); } currentStepStack.clear(); }