Google 致力于为黑人社区推动种族平等。查看具体举措

CountTestCasesCollector

public class CountTestCasesCollector
extends BaseDeviceMetricCollector

对象
com.android.tradefed.device.metric.BaseDeviceMetricCollector
com.android.tradefed.device.metric.CountTestCasesCollector


计数和报告的测试用例的数量对于一个给定IRemoteTest

概括

公共构造函数

CountTestCasesCollector ()
CountTestCasesCollector (IRemoteTest test)

公共方法

void onTestEnd ( DeviceMetricData testData, currentTestCaseMetrics) onTestEnd ( DeviceMetricData testData, currentTestCaseMetrics)

测试用例结束时的回调。

void onTestRunEnd ( DeviceMetricData runData, currentRunMetrics) onTestRunEnd ( DeviceMetricData runData, currentRunMetrics)

测试运行结束时的回调。

void setTestType (IRemoteTest test)

公共构造函数

CountTestCasesCollector

public CountTestCasesCollector ()

CountTestCasesCollector

public CountTestCasesCollector (IRemoteTest test)

参数
test IRemoteTest

公共方法

测试结束时

public void onTestEnd (DeviceMetricData testData, 
                 currentTestCaseMetrics)

测试用例结束时的回调。这应该是清理的时候了。

参数
testData DeviceMetricData :在DeviceMetricData保持测试用例的数据。将是相同的对象期间BaseDeviceMetricCollector.onTestStart(com.android.tradefed.device.metric.DeviceMetricData)

currentTestCaseMetrics :传递给指标的当前地图ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, Map)

测试运行结束

public void onTestRunEnd (DeviceMetricData runData, 
                 currentRunMetrics)

测试运行结束时的回调。这应该是清理的时候了。

参数
runData DeviceMetricData :在DeviceMetricData持有的运行数据。将是相同的对象期间BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData)

currentRunMetrics :传递给指标的当前地图ITestLifeCycleReceiver.testRunEnded(long, Map)

设置测试类型

public void setTestType (IRemoteTest test)

参数
test IRemoteTest