public class TestExecution extends java.lang.Object implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TestExecution.Builder
Builder for creating
TestExecution instances. |
| Modifier | Constructor and Description |
|---|---|
protected |
TestExecution(java.lang.String uniformPath,
double durationSeconds,
ETestExecutionResult result,
java.lang.String message) |
| Modifier and Type | Method and Description |
|---|---|
Assessment |
createAssessment()
Create an assessment for this test result.
|
boolean |
equals(java.lang.Object o) |
double |
getDurationMillis() |
double |
getDurationSeconds() |
java.util.Optional<java.lang.String> |
getMessage() |
ETestExecutionResult |
getResult() |
java.lang.String |
getUniformPath() |
int |
hashCode() |
boolean |
isFailure()
Returns whether something went wrong during execution of this test (either
direct test failure or error during execution).
|
static TestExecution |
merge(java.util.Collection<TestExecution> testExecutions)
Merges the
TestExecutions. |
java.lang.String |
toString() |
UniformPath |
toUniformPath()
Compute the test execution path.
|
protected TestExecution(java.lang.String uniformPath, double durationSeconds, ETestExecutionResult result, java.lang.String message)
public java.lang.String getUniformPath()
uniformPathpublic double getDurationMillis()
durationSecondspublic double getDurationSeconds()
durationSecondspublic ETestExecutionResult getResult()
resultpublic java.util.Optional<java.lang.String> getMessage()
messagepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isFailure()
public Assessment createAssessment()
public UniformPath toUniformPath()
public static TestExecution merge(java.util.Collection<TestExecution> testExecutions)
TestExecutions. The result is the worst
ETestExecutionResult with the maximum encountered
durationSeconds.