TextResultReporter
public
class
TextResultReporter
extends InvocationToJUnitResultForwarder
implements
ITestInvocationListener,
ILogSaverListener
java.lang.Object | ||
↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder | |
↳ | com.android.tradefed.result.TextResultReporter |
A test result reporter that forwards results to the JUnit text result printer.
Summary
Public constructors | |
---|---|
TextResultReporter()
Creates a |
Public methods | |
---|---|
void
|
testAssumptionFailure(TestDescription testId, String trace)
|
void
|
testEnded(TestDescription testId,
Overrides parent to explicitly print out test metrics. |
void
|
testFailed(TestDescription testId, String trace)
Overrides parent to explicitly print out failures. |
void
|
testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)
|
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
void
|
testRunEnded(long elapsedTime,
Overrides parent to explicitly print out metrics. |
Public constructors
Public methods
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId, String trace)
Parameters | |
---|---|
testId |
TestDescription |
trace |
String |
testEnded
public void testEnded (TestDescription testId,metrics)
Overrides parent to explicitly print out test metrics.
Parameters | |
---|---|
testId |
TestDescription |
metrics |
|
testFailed
public void testFailed (TestDescription testId, String trace)
Overrides parent to explicitly print out failures. The ResultPrinter relies on the runner calling "print" at end of test run to do this.
Parameters | |
---|---|
testId |
TestDescription |
trace |
String |
testLog
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
Parameters | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
Parameters | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
testRunEnded
public void testRunEnded (long elapsedTime,metrics)
Overrides parent to explicitly print out metrics.
Parameters | |
---|---|
elapsedTime |
long |
metrics |
|