public void suspendTest(TestResult result) { switch (result) { case PENDING: testPending(); break; case IGNORED: testIgnored(); break; case SKIPPED: testSkipped(); break; } }
private void markAsPending(FrameworkMethod method) { stepListener.testStarted(Description.createTestDescription(method.getMethod().getDeclaringClass(), testName(method))); StepEventBus.getEventBus().testPending(); StepEventBus.getEventBus().testFinished(); }
public void stepPending(String message) { testPending(); stepDone(); getResultTally().logIgnoredTest(); for (StepListener stepListener : getAllListeners()) { if (message != null) { stepListener.stepPending(message); } else { stepListener.stepPending(); } } }
public void stepPending(String message) { testPending(); stepDone(); getResultTally().logIgnoredTest(); for (StepListener stepListener : getAllListeners()) { if (message != null) { stepListener.stepPending(message); } else { stepListener.stepPending(); } } }
public void stepPending(String message) { testPending(); stepDone(); getResultTally().logIgnoredTest(); for (StepListener stepListener : getAllListeners()) { if (message != null) { stepListener.stepPending(message); } else { stepListener.stepPending(); } } }
public void beforeScenario(String scenarioTitle) { clearScenarioResult(); if (shouldRestartDriverBeforeEachScenario() && !shouldNestScenarios()) { WebdriverProxyFactory.resetDriver(ThucydidesWebDriverSupport.getDriver()); } if (shouldResetStepsBeforeEachScenario()) { ThucydidesStepFactory.resetContext(); } if(isCurrentScenario(scenarioTitle)) { //This is our scenario } else if (shouldNestScenarios()) { startNewStep(scenarioTitle); } else { startScenarioCalled(scenarioTitle); } if (pendingScenario()) { StepEventBus.getEventBus().testPending(); } else if (skippedScenario()) { StepEventBus.getEventBus().testIgnored(); } }
private void updateResultFromTags(List<Tag> scenarioTags) { if (isManual(scenarioTags)) { updateManualResultsFrom(scenarioTags); } else if (isPending(scenarioTags)) { getStepEventBus(currentFeaturePath()).testPending(); } else if (isSkippedOrWIP(scenarioTags)) { getStepEventBus(currentFeaturePath()).testSkipped(); getStepEventBus(currentFeaturePath()).getBaseStepListener().overrideResultTo(TestResult.SKIPPED); } else if (isIgnored(scenarioTags)) { getStepEventBus(currentFeaturePath()).testIgnored(); getStepEventBus(currentFeaturePath()).getBaseStepListener().overrideResultTo(TestResult.IGNORED); } }
private void updateResultFromTags(List<Tag> scenarioTags) { if (isManual(scenarioTags)) { updateManualResultsFrom(scenarioTags); } else if (isPending(scenarioTags)) { getStepEventBus(currentFeaturePath()).testPending(); } else if (isSkippedOrWIP(scenarioTags)) { getStepEventBus(currentFeaturePath()).testSkipped(); getStepEventBus(currentFeaturePath()).getBaseStepListener().overrideResultTo(TestResult.SKIPPED); } else if (isIgnored(scenarioTags)) { getStepEventBus(currentFeaturePath()).testIgnored(); getStepEventBus(currentFeaturePath()).getBaseStepListener().overrideResultTo(TestResult.IGNORED); } }
private void markAsSkippedOrPendingIfAnnotatedAsSuchIn(List<String> tags) { if (isManual(tags)) { StepEventBus.getEventBus().testIsManual(); } if (isSkipped(tags)) { StepEventBus.getEventBus().testSkipped(); StepEventBus.getEventBus().getBaseStepListener().overrideResultTo(TestResult.SKIPPED); } if (isPending(tags)) { StepEventBus.getEventBus().testPending(); StepEventBus.getEventBus().getBaseStepListener().overrideResultTo(TestResult.PENDING); } if (isIgnored(tags)) { StepEventBus.getEventBus().testIgnored(); StepEventBus.getEventBus().getBaseStepListener().overrideResultTo(TestResult.IGNORED); } }