public void testStarted(final String newTestName, final Class<?> testClass) { if (newTestName != null) { testStarted(newTestName); } }
public void testStarted(final String newTestName, final Class<?> testClass) { if (newTestName != null) { testStarted(newTestName); } }
/** * Tell Thucydides to start recording test outcomes and step events for a new test. * * @param name A human-readable name that will identify this test in the test reports. */ public void testStarted(final String name) { notifyEventBus().testStarted(name); }
public void testStarted(final String newTestName, final Class<?> testClass) { ensureThatTheTestSuiteStartedWith(testClass); if (newTestName != null) { testStarted(newTestName); } }
/** * Tell Thucydides to start recording test outcomes and step events for a new test. * * @param name A human-readable name that will identify this test in the test reports. */ public void testStarted(final String name) { notifyEventBus().testStarted(name); }
public void testStarted(final String newTestName, final Story story) { startSuiteWithStoryForFirstTest(story); testStarted(newTestName); }
public void testStarted(final String newTestName, final Story story) { startSuiteWithStoryForFirstTest(story); testStarted(newTestName); }
/** * Tell Thucydides to start recording test outcomes and step events for a new test. * * @param name A human-readable name that will identify this test in the test reports. */ public void testStarted(final String name) { notifyEventBus().testStarted(name); }
public void testStarted(final String newTestName, final Story story) { startSuiteWithStoryForFirstTest(story); testStarted(newTestName); }
private void startScenarioCalled(String scenarioTitle) { StepEventBus.getEventBus().testStarted(scenarioTitle); activeScenarios.add(scenarioTitle); }
private void declareOutOfSuiteFailure() { String storyName = !storyStack.isEmpty() ? storyStack.peek().getName() : "Before or After Story"; String storyId = !storyStack.isEmpty() ? storyStack.peek().getPath() : null; StepEventBus.getEventBus().testStarted(storyName, storyId); }
@Override public void evaluate() throws Throwable { try { for (T regiter : listeners) { StepEventBus.getEventBus().registerListener(regiter); } StepEventBus.getEventBus().testStarted(name); statement.evaluate(); } finally { finish(); } } };
private void startScenarioCalled(Scenario scenario, Story story) { StepEventBus.getEventBus().setTestSource(TEST_SOURCE_JBEHAVE.getValue()); StepEventBus.getEventBus().testStarted(scenario.getTitle(), story.getPath() + ";" + scenario.getTitle()); activeScenarios.add(scenario); }
/** * Called when a test starts. We also need to start the test suite the first * time, as the testRunStarted() method is not invoked for some reason. */ @Override public void testStarted(final Description description) { if (testingThisTest(description)) { startTestSuiteForFirstTest(description); StepEventBus.getEventBus().clear(); StepEventBus.getEventBus().testStarted(description.getMethodName(), description.getTestClass()); startTest(); } }
private void startScenario(Feature currentFeature, ScenarioDefinition scenarioDefinition, String scenarioName) { getStepEventBus(currentFeaturePath()).setTestSource(TestSourceType.TEST_SOURCE_CUCUMBER.getValue()); getStepEventBus(currentFeaturePath()).testStarted(scenarioName, scenarioIdFrom(TestSourcesModel.convertToId(currentFeature.getName()), TestSourcesModel.convertToId(scenarioName))); getStepEventBus(currentFeaturePath()).addDescriptionToCurrentTest(scenarioDefinition.getDescription()); getStepEventBus(currentFeaturePath()).addTagsToCurrentTest(convertCucumberTags(currentFeature.getTags())); if (isScenario(scenarioDefinition)) { getStepEventBus(currentFeaturePath()).addTagsToCurrentTest(convertCucumberTags(((Scenario) scenarioDefinition).getTags())); } else if (isScenarioOutline(scenarioDefinition)) { getStepEventBus(currentFeaturePath()).addTagsToCurrentTest(convertCucumberTags(((ScenarioOutline) scenarioDefinition).getTags())); } registerFeatureJiraIssues(currentFeature.getTags()); List<Tag> tags = getTagsOfScenarioDefinition(scenarioDefinition); registerScenarioJiraIssues(tags); scenarioTags = tagsForScenario(scenarioDefinition); updateResultFromTags(scenarioTags); }
private void startScenario(Feature currentFeature, ScenarioDefinition scenarioDefinition, String scenarioName) { getStepEventBus(currentFeaturePath()).setTestSource(TestSourceType.TEST_SOURCE_CUCUMBER.getValue()); getStepEventBus(currentFeaturePath()).testStarted(scenarioName, scenarioIdFrom(TestSourcesModel.convertToId(currentFeature.getName()), TestSourcesModel.convertToId(scenarioName))); getStepEventBus(currentFeaturePath()).addDescriptionToCurrentTest(scenarioDefinition.getDescription()); getStepEventBus(currentFeaturePath()).addTagsToCurrentTest(convertCucumberTags(currentFeature.getTags())); if (isScenario(scenarioDefinition)) { getStepEventBus(currentFeaturePath()).addTagsToCurrentTest(convertCucumberTags(((Scenario) scenarioDefinition).getTags())); } else if (isScenarioOutline(scenarioDefinition)) { getStepEventBus(currentFeaturePath()).addTagsToCurrentTest(convertCucumberTags(((ScenarioOutline) scenarioDefinition).getTags())); } registerFeatureJiraIssues(currentFeature.getTags()); List<Tag> tags = getTagsOfScenarioDefinition(scenarioDefinition); registerScenarioJiraIssues(tags); scenarioTags = tagsForScenario(scenarioDefinition); updateResultFromTags(scenarioTags); }