public class FailureAnalysis
extends java.lang.Object
Any exception that extends StepFailureException and has a cause that meets the above criteria is classed as above. All other exceptions are an ERROR
You can specify your own exceptions that will cause a failure by using the serenity.fail.on property. You can also specify those that will cause an error using serenity.error.on.
| Constructor and Description |
|---|
FailureAnalysis() |
FailureAnalysis(EnvironmentVariables environmentVariables) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
reportAsCompromised(java.lang.Class<?> testFailureCause) |
boolean |
reportAsError(java.lang.Class<?> testFailureCause) |
boolean |
reportAsFailure(java.lang.Class<?> testFailureCause) |
boolean |
reportAsPending(java.lang.Class<?> testFailureCause) |
boolean |
reportAsSkipped(java.lang.Class<?> testFailureCause) |
TestResult |
resultFor(java.lang.Class testFailureCause) |
TestResult |
resultFor(StepFailure stepFailure) |
TestResult |
resultFor(java.lang.Throwable testFailureCause) |
public FailureAnalysis()
public FailureAnalysis(EnvironmentVariables environmentVariables)
public TestResult resultFor(java.lang.Class testFailureCause)
public boolean reportAsFailure(java.lang.Class<?> testFailureCause)
public boolean reportAsCompromised(java.lang.Class<?> testFailureCause)
public boolean reportAsPending(java.lang.Class<?> testFailureCause)
public boolean reportAsSkipped(java.lang.Class<?> testFailureCause)
public boolean reportAsError(java.lang.Class<?> testFailureCause)
public TestResult resultFor(java.lang.Throwable testFailureCause)
public TestResult resultFor(StepFailure stepFailure)