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
TestExecution s. |
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()
uniformPath
public double getDurationMillis()
durationSeconds
public double getDurationSeconds()
durationSeconds
public ETestExecutionResult getResult()
result
public java.util.Optional<java.lang.String> getMessage()
message
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isFailure()
public Assessment createAssessment()
public UniformPath toUniformPath()
public static TestExecution merge(java.util.Collection<TestExecution> testExecutions)
TestExecution
s. The result is the worst
ETestExecutionResult
with the maximum encountered
durationSeconds
.