ReportPassedTests
public
class
ReportPassedTests
extends CollectingTestListener
implements
IConfigurationReceiver,
ISupportGranularResults
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.result.ReportPassedTests |
Report in a file possible filters to exclude passed test.
Summary
Public constructors | |
---|---|
ReportPassedTests()
|
Public methods | |
---|---|
void
|
invocationEnded(long elapsedTime)
Reports that the invocation has terminated, whether successfully or due to some error condition. |
void
|
invocationFailed(FailureDescription failure)
Reports an incomplete invocation due to some error condition. |
void
|
invocationStarted(IInvocationContext context)
Reports the start of the test invocation. |
void
|
setConfiguration(IConfiguration configuration)
Injects the |
void
|
setLogger(ITestLogger logger)
|
boolean
|
supportGranularResults()
Returns True if the reporter support granular results, false otherwise. |
void
|
testModuleEnded()
Reports the end of a module run. |
void
|
testModuleStarted(IInvocationContext moduleContext)
Reports the beginning of a module running. |
void
|
testRunEnded(long elapsedTime,
Reports end of test run. |
Public constructors
ReportPassedTests
public ReportPassedTests ()
Public methods
invocationEnded
public void invocationEnded (long elapsedTime)
Reports that the invocation has terminated, whether successfully or due to some error condition.
Will be automatically called by the TradeFederation framework.Parameters | |
---|---|
elapsedTime |
long : the elapsed time of the invocation in ms |
invocationFailed
public void invocationFailed (FailureDescription failure)
Reports an incomplete invocation due to some error condition.
Will be automatically called by the TradeFederation framework.
Parameters | |
---|---|
failure |
FailureDescription : the FailureDescription describing the cause of the failure |
invocationStarted
public void invocationStarted (IInvocationContext context)
Reports the start of the test invocation.
Will be automatically called by the TradeFederation framework. Reporters need to override this method to support multiple devices reporting.
Parameters | |
---|---|
context |
IInvocationContext : information about the invocation |
setConfiguration
public void setConfiguration (IConfiguration configuration)
Injects the IConfiguration
in use.
Parameters | |
---|---|
configuration |
IConfiguration |
supportGranularResults
public boolean supportGranularResults ()
Returns True if the reporter support granular results, false otherwise.
Returns | |
---|---|
boolean |
testModuleEnded
public void testModuleEnded ()
Reports the end of a module run.
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
Reports the beginning of a module running. This callback is associated with testModuleEnded()
and is optional in the sequence. It is only used during a run that uses
modules: suite based runners.
Parameters | |
---|---|
moduleContext |
IInvocationContext : the IInvocationContext of the module. |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
Reports end of test run. FIXME: We cannot have two Map<> interfaces with different type, so we have to use HashMap here.
Parameters | |
---|---|
elapsedTime |
long : device reported elapsed time, in milliseconds |
runMetrics |
: key-value pairs reported at the end of a test run with Metric . |