TestResult
public class TestResult
Container for a result of a single test.
This is a copy of com.android.ddmlib.testrunner.TestResult.
Summary
Nested types |
|---|
public enum TestResult.TestStatus |
Public fields |
|
|---|---|
long |
|
Map<String, String> |
|
String |
|
long |
|
TestResult.TestStatus |
Public constructors |
|---|
Public methods |
|
|---|---|
boolean |
|
long |
Return the |
Map<String, String> |
Get the associated test metrics. |
String |
Get the associated |
long |
Return the |
TestResult.TestStatus |
Get the |
int |
hashCode() |
void |
setEndTime(long currentTimeMillis)Sets the end time |
void |
setMetrics(Map<String, String> metrics)Set the test metrics, overriding any previous values. |
void |
setStackTrace(String trace)Set the stack trace. |
TestResult |
setStatus(TestResult.TestStatus status)Set the |
Public fields
Public constructors
Public methods
getEndTime
public long getEndTime()
Return the currentTimeMillis time that the testEnded event was received.
getStackTrace
public String getStackTrace()
Get the associated String stack trace. Should be null if getStatus is PASSED.
getStartTime
public long getStartTime()
Return the currentTimeMillis time that the testStarted event was received.
setMetrics
public void setMetrics(Map<String, String> metrics)
Set the test metrics, overriding any previous values.