ConsoleResultReporter
public
class
ConsoleResultReporter
extends TestResultListener
implements
ILogSaverListener,
ITestInvocationListener
java.lang.Object | ||
↳ | com.android.tradefed.result.TestResultListener | |
↳ | com.android.tradefed.result.ConsoleResultReporter |
Result reporter to print the test results to the console.
Prints each test run, each test case, and test metrics, test logs, and test file locations.
Summary
Public constructors | |
---|---|
ConsoleResultReporter()
|
Public methods | |
---|---|
void
|
invocationEnded(long elapsedTime)
|
void
|
invocationStarted(IInvocationContext context)
|
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
void
|
testResult(TestDescription test, TestResult result)
|
void
|
testRunEnded(long elapsedTimeMillis,
|
void
|
testRunFailed(FailureDescription failure)
|
void
|
testRunFailed(String errorMessage)
|
void
|
testRunStarted(String runName, int testCount)
|
Public constructors
ConsoleResultReporter
public ConsoleResultReporter ()
Public methods
invocationEnded
public void invocationEnded (long elapsedTime)
Parameters | |
---|---|
elapsedTime |
long |
invocationStarted
public void invocationStarted (IInvocationContext context)
Parameters | |
---|---|
context |
IInvocationContext |
logAssociation
public void logAssociation (String dataName, LogFile logFile)
Parameters | |
---|---|
dataName |
String |
logFile |
LogFile |
testLogSaved
public void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
Parameters | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
testResult
public void testResult (TestDescription test, TestResult result)
Parameters | |
---|---|
test |
TestDescription |
result |
TestResult |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,metrics)
Parameters | |
---|---|
elapsedTimeMillis |
long |
metrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
Parameters | |
---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
Parameters | |
---|---|
errorMessage |
String |
testRunStarted
public void testRunStarted (String runName, int testCount)
Parameters | |
---|---|
runName |
String |
testCount |
int |