public class SimpleTestResult extends java.lang.Object implements TestResult
ERROR, FAILED, PASSED, STATUSSTR_ERROR, STATUSSTR_FAILED, STATUSSTR_PASSED
Constructor and Description |
---|
SimpleTestResult() |
Modifier and Type | Method and Description |
---|---|
void |
addResultPart(TestResultPart part)
Adds a part of the result.
|
void |
close()
Marks that the collection of test results is completed and free the
related resources (also closing listeners).
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Additional arbitrary meta data
|
java.util.Date |
getCloseDate()
The date when this test result was closed.
|
java.lang.String |
getCurrentTestRunUuid() |
java.util.List<TestResultPart> |
getParts() |
java.lang.String |
getUuid() |
void |
notifyTestRun(TestRun testRun)
Notifies the current test run.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) |
void |
setThrowError(java.lang.Boolean throwError) |
void |
setUuid(java.lang.String uuid) |
public void addResultPart(TestResultPart part)
TestResult
addResultPart
in interface TestResult
public void close()
TestResult
close
in interface TestResult
public java.util.List<TestResultPart> getParts()
public java.util.Date getCloseDate()
TestResult
getCloseDate
in interface TestResult
public void setThrowError(java.lang.Boolean throwError)
public void notifyTestRun(TestRun testRun)
TestRunAware
notifyTestRun
in interface TestRunAware
public java.lang.String getUuid()
getUuid
in interface TestResult
public void setUuid(java.lang.String uuid)
public java.lang.String getCurrentTestRunUuid()
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
TestResult
getAttributes
in interface TestResult
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Copyright © 2007–2020. All rights reserved.