Stay organized with collections Save and categorize content based on your preferences.

CountTestCasesCollector

public class CountTestCasesCollector
extends BaseDeviceMetricCollector

java.lang.Object
   ↳ com.android.tradefed.device.metric.BaseDeviceMetricCollector
     ↳ com.android.tradefed.device.metric.CountTestCasesCollector


Count and report the number of test cases for a given IRemoteTest.

Summary

Public constructors

CountTestCasesCollector()
CountTestCasesCollector(IRemoteTest test)

Public methods

void onTestEnd(DeviceMetricData testData, currentTestCaseMetrics)

Callback when a test case is ended.

void onTestRunEnd(DeviceMetricData runData, currentRunMetrics)

Callback when a test run is ended.

void setTestType(IRemoteTest test)

Public constructors

CountTestCasesCollector

public CountTestCasesCollector ()

CountTestCasesCollector

public CountTestCasesCollector (IRemoteTest test)

Parameters
test IRemoteTest

Public methods

onTestEnd

public void onTestEnd (DeviceMetricData testData, 
                 currentTestCaseMetrics)

Callback when a test case is ended. This should be the time for clean up.

Parameters
testData DeviceMetricData: the DeviceMetricData holding the data for the test case. Will be the same object as during BaseDeviceMetricCollector.onTestStart(com.android.tradefed.device.metric.DeviceMetricData).

currentTestCaseMetrics : the current map of metrics passed to ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, Map).

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 BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData).

currentRunMetrics : the current map of metrics passed to ITestLifeCycleReceiver.testRunEnded(long, Map).

setTestType

public void setTestType (IRemoteTest test)

Parameters
test IRemoteTest