透過集合功能整理內容 你可以依據偏好儲存及分類內容。

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