JarHostTest.HostTestListener
public
class
JarHostTest.HostTestListener
extends ResultForwarder
java.lang.Object | ||
↳ | com.android.tradefed.result.ResultForwarder | |
↳ | com.android.compatibility.common.tradefed.testtype.JarHostTest.HostTestListener |
Wrapper listener that forwards all events except testRunStarted() and testRunEnded() to the embedded listener. Each test class in the jar will invoke these events, which HostTestListener withholds from listeners for console logging and result reporting.
Summary
Public constructors | |
---|---|
HostTestListener(ITestInvocationListener listener)
|
Public methods | |
---|---|
void
|
testRunEnded(long elapsedTime,
Reports end of test run. |
void
|
testRunStarted(String name, int numTests)
Reports the start of a test run. |
Public constructors
HostTestListener
public HostTestListener (ITestInvocationListener listener)
Parameters | |
---|---|
listener |
ITestInvocationListener |
Public methods
testRunEnded
public void testRunEnded (long elapsedTime,metrics)
Reports end of test run.
Parameters | |
---|---|
elapsedTime |
long : device reported elapsed time, in milliseconds |
metrics |
: key-value pairs reported at the end of a test run |
testRunStarted
public void testRunStarted (String name, int numTests)
Reports the start of a test run.
Parameters | |
---|---|
name |
String : the test run name |
numTests |
int : total number of tests in test run |