Package org.citrusframework
Class TestResult
java.lang.Object
org.citrusframework.TestResult
Class representing test results (failed, successful, skipped)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TestResultCreate new test result for failed execution.static TestResultCreate new test result for failed execution.static TestResultCreate new test result with parameters for failed execution.getCause()booleanisFailed()booleanbooleanstatic TestResultCreate new test result for skipped test.static TestResultCreate new test result with parameters for skipped test.static TestResultCreate new test result for successful execution.static TestResultCreate new test result with parameters for successful execution.toString()withDuration(Duration duration) withFailureType(String failureType)
-
Method Details
-
success
Create new test result for successful execution. -
success
Create new test result with parameters for successful execution. -
skipped
Create new test result for skipped test. -
skipped
public static TestResult skipped(String name, String className, @Nonnull Map<String, Object> parameters) Create new test result with parameters for skipped test. -
failed
Create new test result for failed execution. -
failed
Create new test result for failed execution. -
failed
public static TestResult failed(String name, String className, @Nullable Throwable cause, @Nonnull Map<String, Object> parameters) Create new test result with parameters for failed execution. -
isSuccess
public boolean isSuccess() -
isFailed
public boolean isFailed() -
isSkipped
public boolean isSkipped() -
getResult
-
getTestName
-
getClassName
-
getParameters
-
getCause
-
getErrorMessage
-
getFailureStack
-
getFailureType
-
withFailureType
-
getDuration
-
withDuration
-
toString
-