private void notifyStepIgnored(String message) { StepEventBus.getEventBus().stepIgnored(); }
public void reportStepIgnored() { StepEventBus.getEventBus().stepIgnored(); }
public void reportStepIgnored() { StepEventBus.getEventBus().stepIgnored(); }
private void notifyStepIgnored(String message) { StepEventBus.getEventBus().stepIgnored(); }
private void notifySkippedStepFinishedFor(final Method method, final Object[] args) { StepEventBus.getEventBus().stepIgnored(); }
private void notifyStepIgnored(String message) { StepEventBus.getEventBus().stepIgnored(); }
private void processAnnotatedResult() { TestResult forcedResult = StepEventBus.getEventBus().getForcedResult().get(); switch (forcedResult) { case PENDING: StepEventBus.getEventBus().stepPending(); break; case IGNORED: StepEventBus.getEventBus().stepIgnored(); break; case SKIPPED: StepEventBus.getEventBus().stepIgnored(); break; default: StepEventBus.getEventBus().stepIgnored(); } }
public void reportStepSkippedFor(Performable todo) { ExecutedStepDescription taskDescription = ExecutedStepDescription.of(todo.getClass(),"performAs"); StepEventBus.getEventBus().stepStarted(taskDescription); StepEventBus.getEventBus().stepIgnored(); }
public void reportStepSkippedFor(Performable todo) { ExecutedStepDescription taskDescription = ExecutedStepDescription.of(todo.getClass(),"performAs"); StepEventBus.getEventBus().stepStarted(taskDescription); StepEventBus.getEventBus().stepIgnored(); }
private void notifyStepSkippedFor(final Method method, final Object[] args) { if (isPending(method)) { StepEventBus.getEventBus().stepPending(); } else { StepEventBus.getEventBus().stepIgnored(); } }
@Override public void ignorable(String title) { StepEventBus.getEventBus().updateCurrentStepTitle(normalized(title)); StepEventBus.getEventBus().stepIgnored(); }
@Override public void comment(String step) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(step)); StepEventBus.getEventBus().stepIgnored(); }
private void notifyStepSkippedFor(final Method method, final Object[] args) throws Exception { if (isPending(method)) { StepEventBus.getEventBus().stepPending(); } else { StepEventBus.getEventBus().stepIgnored(); } }
public void ignorable(String title) { StepEventBus.getEventBus().updateCurrentStepTitle(normalized(title)); StepEventBus.getEventBus().stepIgnored(); }
private void notifyStepSkippedFor(final Method method, final Object[] args) throws Exception { if (isPending(method)) { StepEventBus.getEventBus().stepPending(); } else { StepEventBus.getEventBus().stepIgnored(); } }
public void notPerformed(String stepTitle) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(normalized(stepTitle))); StepEventBus.getEventBus().stepIgnored(); }
@Override public void notPerformed(String stepTitle) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(normalized(stepTitle))); StepEventBus.getEventBus().stepIgnored(); }
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(); } }
private <T> void check(Consequence<T> consequence) { try { eventBusInterface.reportNewStepWithTitle(FormattedTitle.ofConsequence(consequence)); if (StepEventBus.getEventBus().currentTestIsSuspended() || StepEventBus.getEventBus().aStepInTheCurrentTestHasFailed()) { StepEventBus.getEventBus().stepIgnored(); } consequence.evaluateFor(this); eventBusInterface.reportStepFinished(); } catch (IgnoreStepException e) { eventBusInterface.reportStepIgnored(); } catch (Throwable e) { eventBusInterface.reportStepFailureFor(consequence, e); if (Serenity.shouldThrowErrorsImmediately()) { throw e; } } }