BugreportzOnTestCaseFailureCollector
public
class
BugreportzOnTestCaseFailureCollector
extends BaseDeviceMetricCollector
java.lang.Object | ||
↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
↳ | com.android.tradefed.device.metric.BugreportzOnTestCaseFailureCollector |
Collect a bugreportz when a test case in a run fails.
Summary
Public constructors | |
---|---|
BugreportzOnTestCaseFailureCollector()
|
Public methods | |
---|---|
void
|
onTestFail(DeviceMetricData testData, TestDescription test)
Callback when a test case fails. |
void
|
onTestRunEnd(DeviceMetricData runData,
Callback when a test run is ended. |
void
|
onTestRunStart(DeviceMetricData runData)
Callback when a test run is started. |
Public constructors
BugreportzOnTestCaseFailureCollector
public BugreportzOnTestCaseFailureCollector ()
Public methods
onTestFail
public void onTestFail (DeviceMetricData testData, TestDescription test)
Callback when a test case fails.
Parameters | |
---|---|
testData |
DeviceMetricData : the DeviceMetricData holding the data for the test case. |
test |
TestDescription : the TestDescription of the test case in progress. |
onTestRunEnd
public void onTestRunEnd (DeviceMetricData runData,currentRunMetrics)
Callback when a test run is ended. This should be the time for clean up.
Parameters | |
---|---|
runData |
DeviceMetricData : the DeviceMetricData holding the data for the run. Will be the same
object as during onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData) . |
currentRunMetrics |
: the current map of metrics passed to ERROR(/#testRunEnded(long,Map)) . |
onTestRunStart
public void onTestRunStart (DeviceMetricData runData)
Callback when a test run is started.
Parameters | |
---|---|
runData |
DeviceMetricData : the DeviceMetricData holding the data for the run. |