|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITestRunListener
Receives event notifications during instrumentation test runs.
Patterned afterjunit.runner.TestRunListener.
The sequence of calls will be:
| Nested Class Summary | |
|---|---|
static class |
ITestRunListener.TestFailure
Types of test failures. |
| Method Summary | |
|---|---|
void |
testEnded(TestIdentifier test,
java.util.Map<java.lang.String,java.lang.String> testMetrics)
Reports the execution end of an individual test case. |
void |
testFailed(ITestRunListener.TestFailure status,
TestIdentifier test,
java.lang.String trace)
Reports the failure of a individual test case. |
void |
testRunEnded(long elapsedTime,
java.util.Map<java.lang.String,java.lang.String> runMetrics)
Reports end of test run. |
void |
testRunFailed(java.lang.String errorMessage)
Reports test run failed to complete due to a fatal error. |
void |
testRunStarted(java.lang.String runName,
int testCount)
Reports the start of a test run. |
void |
testRunStopped(long elapsedTime)
Reports test run stopped before completion due to a user request. |
void |
testStarted(TestIdentifier test)
Reports the start of an individual test case. |
| Method Detail |
|---|
void testRunStarted(java.lang.String runName,
int testCount)
runName - the test run nametestCount - total number of tests in test runvoid testStarted(TestIdentifier test)
test - identifies the test
void testFailed(ITestRunListener.TestFailure status,
TestIdentifier test,
java.lang.String trace)
status - failure typetest - identifies the testtrace - stack trace of failure
void testEnded(TestIdentifier test,
java.util.Map<java.lang.String,java.lang.String> testMetrics)
testFailed(com.android.ddmlib.testrunner.ITestRunListener.TestFailure, com.android.ddmlib.testrunner.TestIdentifier, java.lang.String) was not invoked, this test passed. Also returns any key/value
metrics which may have been emitted during the test case's execution.
test - identifies the testtestMetrics - a Map of the metrics emittedvoid testRunFailed(java.lang.String errorMessage)
errorMessage - String describing reason for run failure.void testRunStopped(long elapsedTime)
elapsedTime - device reported elapsed time, in milliseconds
void testRunEnded(long elapsedTime,
java.util.Map<java.lang.String,java.lang.String> runMetrics)
elapsedTime - device reported elapsed time, in millisecondsrunMetrics - key-value pairs reported at the end of a test run
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||