public void stepPending() { stepPending(null); }
public void stepPending() { stepPending(null); }
public void stepPending() { stepPending(null); }
private void notifyStepPending(String message) { StepEventBus.getEventBus().stepPending(message); }
private void notifyStepPending(String message) { StepEventBus.getEventBus().stepPending(message); }
private void notifyStepPending(String message) { StepEventBus.getEventBus().stepPending(message); }
private void notifyStepSkippedFor(final Method method, final Object[] args) { if (isPending(method)) { StepEventBus.getEventBus().stepPending(); } else { StepEventBus.getEventBus().stepIgnored(); } }
private void notifyStepSkippedFor(final Method method, final Object[] args) throws Exception { if (isPending(method)) { StepEventBus.getEventBus().stepPending(); } else { 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 pending(String stepTitle) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(normalized(stepTitle))); StepEventBus.getEventBus().stepPending(); }
@Override public void pending(String stepTitle) { StepEventBus.getEventBus().stepStarted(ExecutedStepDescription.withTitle(normalized(stepTitle))); StepEventBus.getEventBus().stepPending(); }
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(); } }
private <T extends Performable> void perform(T todo) { if (isPending(todo)) { StepEventBus.getEventBus().stepPending(); } try { notifyPerformanceOf(todo); taskTally.newTask(); performTask(todo); if (anOutOfStepErrorOccurred()) { eventBusInterface.mergePreviousStep(); } } catch (Throwable exception) { if (!pendingOrIgnore(exception)) { eventBusInterface.reportStepFailureFor(todo, exception); } if (Serenity.shouldThrowErrorsImmediately() || isAnAssumptionFailure(exception)) { throw exception; } } finally { eventBusInterface.updateOverallResult(); } }
private <T extends Performable> void perform(T todo) { if (isPending(todo)) { StepEventBus.getEventBus().stepPending(); } try { notifyPerformanceOf(todo); taskTally.newTask(); todo.performAs(this); if (anOutOfStepErrorOccurred()) { eventBusInterface.mergePreviousStep(); } } catch (Throwable exception) { if (!pendingOrIgnore(exception)) { eventBusInterface.reportStepFailureFor(todo, exception); } if (Serenity.shouldThrowErrorsImmediately() || isAnAssumptionFailure(exception)) { throw exception; } } finally { eventBusInterface.updateOverallResult(); } }
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(); } }