public String getMessage() { return getException().getMessage(); } }
public TestResult resultFor(StepFailure stepFailure) { if (stepFailure.getException() == null) { return FAILURE; } else { return resultFor(stepFailure.getException()); } }
public void lastStepFailedWith(StepFailure failure) { lastStepFailedWith(failure.getException()); }
public void lastStepFailedWith(StepFailure failure) { lastStepFailedWith(failure.getException()); }
public void lastStepFailedWith(StepFailure failure) { lastStepFailedWith(failure.getException()); }
public void stepFailed(StepFailure failure) { if (loggingLevelIsAtLeast(LoggingLevel.VERBOSE)) { String errorMessage = (failure.getException() != null) ? failure.getException().toString() : failure.getMessage(); String failureType = analysis.resultFor(failure.getException()).name(); getLogger().info(red("STEP {}: {}"), failureType, errorMessage); } }
private void recordFailureDetailsInFailingTestStep(final StepFailure failure) { if (currentStepExists()) { getCurrentStep().failedWith(new StepFailureException(failure.getMessage(), failure.getException())); } }
private void recordFailureDetailsInFailingTestStep(final StepFailure failure) { if (currentStepExists()) { getCurrentStep().failedWith(new StepFailureException(failure.getMessage(), failure.getException())); } }
public void stepFailed(StepFailure failure) { takeEndOfStepScreenshotFor(FAILURE); getCurrentTestOutcome().determineTestFailureCause(failure.getException()); recordFailureDetailsInFailingTestStep(failure); currentStepDone(failureAnalysis.resultFor(failure)); }
public void stepFailed(StepFailure failure) { takeEndOfStepScreenshotFor(FAILURE); getCurrentTestOutcome().determineTestFailureCause(failure.getException()); // markCurrentStepAs(failureAnalysis.resultFor(failure)); recordFailureDetailsInFailingTestStep(failure); currentStepDone(failureAnalysis.resultFor(failure)); }
public void stepFailed(StepFailure failure) { takeEndOfStepScreenshotFor(FAILURE); TestFailureCause failureCause = TestFailureCause.from(failure.getException()); getCurrentTestOutcome().appendTestFailure(failureCause); recordFailureDetails(failure); currentStepDone(failureAnalysis.resultFor(failure)); }
private void recordFailureDetails(final StepFailure failure) { if (currentStepExists()) { getCurrentStep().failedWith(new StepFailureException(failure.getMessage(), failure.getException())); } if (shouldTagErrors()) { addTagFor(getCurrentTestOutcome()); } lastFailingExample = currentExample; }