|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.ddmlib.testrunner.TestRunResult
public class TestRunResult
Holds results from a single test run.
Maintains an accurate count of tests during execution, and tracks incomplete tests.
Constructor Summary | |
---|---|
TestRunResult()
Create an empty TestRunResult . |
|
TestRunResult(java.lang.String runName)
Create a TestRunResult . |
Method Summary | |
---|---|
void |
addMetrics(java.util.Map<java.lang.String,java.lang.String> runMetrics,
boolean aggregateMetrics)
Adds test run metrics. |
java.util.Set<TestIdentifier> |
getCompletedTests()
Gets the set of completed tests. |
long |
getElapsedTime()
|
java.lang.String |
getName()
|
int |
getNumCompleteTests()
Gets the number of complete tests in this run ie with status != incomplete. |
int |
getNumErrorTests()
Gets the number of error tests in this run. |
int |
getNumFailedTests()
Gets the number of failed tests in this run. |
int |
getNumIncompleteTests()
Gets the number of incomplete tests in this run. |
int |
getNumPassedTests()
Gets the number of passed tests for this run. |
int |
getNumTests()
Gets the number of tests in this run. |
java.lang.String |
getRunFailureMessage()
Return the run failure error message, null if run did not fail. |
java.util.Map<java.lang.String,java.lang.String> |
getRunMetrics()
|
java.util.Map<TestIdentifier,TestResult> |
getTestResults()
Gets a map of the test results. |
boolean |
hasFailedTests()
|
boolean |
isRunComplete()
|
boolean |
isRunFailure()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestRunResult(java.lang.String runName)
TestRunResult
.
runName
- public TestRunResult()
TestRunResult
.
Method Detail |
---|
public java.lang.String getName()
public java.util.Map<TestIdentifier,TestResult> getTestResults()
public void addMetrics(java.util.Map<java.lang.String,java.lang.String> runMetrics, boolean aggregateMetrics)
runMetrics
- the run metricsaggregateMetrics
- if true
, attempt to add given metrics values to any
currently stored values. If false
, replace any currently stored metrics with
the same key.public java.util.Map<java.lang.String,java.lang.String> getRunMetrics()
Map
of the test test run metrics.public java.util.Set<TestIdentifier> getCompletedTests()
public boolean isRunFailure()
true
if test run failed.public boolean isRunComplete()
true
if test run finished.public int getNumPassedTests()
public int getNumTests()
public int getNumCompleteTests()
public int getNumFailedTests()
public int getNumErrorTests()
public int getNumIncompleteTests()
public boolean hasFailedTests()
true
if test run had any failed or error tests.public long getElapsedTime()
public java.lang.String getRunFailureMessage()
null
if run did not fail.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |