|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.ddmlib.testrunner.TestResult
public class TestResult
Container for a result of a single test.
| Nested Class Summary | |
|---|---|
static class |
TestResult.TestStatus
|
| Constructor Summary | |
|---|---|
TestResult()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
long |
getEndTime()
Return the System.currentTimeMillis() time that the
ITestInvocationListener#testEnded(TestIdentifier) event was received. |
java.util.Map<java.lang.String,java.lang.String> |
getMetrics()
Get the associated test metrics. |
java.lang.String |
getStackTrace()
Get the associated String stack trace. |
long |
getStartTime()
Return the System.currentTimeMillis() time that the
ITestInvocationListener#testStarted(TestIdentifier) event was received. |
TestResult.TestStatus |
getStatus()
Get the TestResult.TestStatus result of the test. |
int |
hashCode()
|
void |
setEndTime(long currentTimeMillis)
Sets the end time |
void |
setMetrics(java.util.Map<java.lang.String,java.lang.String> metrics)
Set the test metrics, overriding any previous values. |
void |
setStackTrace(java.lang.String trace)
Set the stack trace. |
TestResult |
setStatus(TestResult.TestStatus status)
Set the TestResult.TestStatus. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestResult()
| Method Detail |
|---|
public TestResult.TestStatus getStatus()
TestResult.TestStatus result of the test.
public java.lang.String getStackTrace()
String stack trace. Should be null if
getStatus() is TestStatus.PASSED.
public java.util.Map<java.lang.String,java.lang.String> getMetrics()
public void setMetrics(java.util.Map<java.lang.String,java.lang.String> metrics)
public long getStartTime()
System.currentTimeMillis() time that the
ITestInvocationListener#testStarted(TestIdentifier) event was received.
public long getEndTime()
System.currentTimeMillis() time that the
ITestInvocationListener#testEnded(TestIdentifier) event was received.
public TestResult setStatus(TestResult.TestStatus status)
TestResult.TestStatus.
public void setStackTrace(java.lang.String trace)
public void setEndTime(long currentTimeMillis)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||