ModuleLogcatCollector

public class ModuleLogcatCollector
extends LogcatOnFailureCollector

java.lang.Object
   ↳ com.android.tradefed.device.metric.BaseDeviceMetricCollector
     ↳ com.android.tradefed.device.metric.LogcatOnFailureCollector
       ↳ com.android.tradefed.device.metric.ModuleLogcatCollector


Version of logcat collector but for module.

Summary

Public constructors

ModuleLogcatCollector()

Public methods

boolean captureModuleLevel()
void onTestFail(DeviceMetricData testData, TestDescription test)

Callback when a test case fails.

void onTestModuleEnded()

Allows capturing the module ended event.

void onTestModuleStarted()

Allows capturing the module started event.

void onTestRunEnd(DeviceMetricData runData, currentRunMetrics)

Callback when a test run is ended.

void onTestRunFailed(DeviceMetricData testData, FailureDescription failure)

Callback for testRunFailed events

void onTestRunStart(DeviceMetricData runData)

Callback when a test run is started.

Public constructors

ModuleLogcatCollector

public ModuleLogcatCollector ()

Public methods

captureModuleLevel

public boolean captureModuleLevel ()

Returns
boolean

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.

Throws
DeviceNotAvailableException

onTestModuleEnded

public void onTestModuleEnded ()

Allows capturing the module ended event.

Throws
DeviceNotAvailableException

onTestModuleStarted

public void onTestModuleStarted ()

Allows capturing the module started event.

Throws
DeviceNotAvailableException

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)).

onTestRunFailed

public void onTestRunFailed (DeviceMetricData testData, 
                FailureDescription failure)

Callback for testRunFailed events

Throws
DeviceNotAvailableException

onTestRunStart

public void onTestRunStart (DeviceMetricData runData)

Callback when a test run is started.

Parameters
runData DeviceMetricData: the DeviceMetricData holding the data for the run.