public class

TestResult

extends Object
java.lang.Object
   ↳ com.android.tradefed.result.TestResult

Class Overview

Container for a result of a single test.

Summary

Nested Classes
enum TestResult.TestStatus  
Public Constructors
TestResult()
Public Methods
boolean equals(Object obj)
long getEndTime()
Return the currentTimeMillis() time that the testEnded(TestIdentifier, Map) event was received.
Map<String, String> getMetrics()
Get the associated test metrics.
String getStackTrace()
Get the associated String stack trace.
long getStartTime()
Return the currentTimeMillis() time that the 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(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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TestResult ()

Public Methods

public boolean equals (Object obj)

public long getEndTime ()

Return the currentTimeMillis() time that the testEnded(TestIdentifier, Map) event was received.

public Map<String, String> getMetrics ()

Get the associated test metrics.

public String getStackTrace ()

Get the associated String stack trace. Should be null if getStatus() is PASSED.

public long getStartTime ()

Return the currentTimeMillis() time that the testStarted(TestIdentifier) event was received.

public TestResult.TestStatus getStatus ()

Get the TestResult.TestStatus result of the test.

public int hashCode ()

public void setEndTime (long currentTimeMillis)

Sets the end time

public void setMetrics (Map<String, String> metrics)

Set the test metrics, overriding any previous values.

public void setStackTrace (String trace)

Set the stack trace.

public TestResult setStatus (TestResult.TestStatus status)