CountTestCasesCollector

public class CountTestCasesCollector
extends BaseDeviceMetricCollector

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


計算並回報指定 IRemoteTest 的測試案例數量。

摘要

公用建構函式

CountTestCasesCollector()
CountTestCasesCollector(IRemoteTest test)

公用方法

void onTestEnd(DeviceMetricData testData, currentTestCaseMetrics)

測試案例結束時的回呼。

void onTestRunEnd(DeviceMetricData runData, currentRunMetrics)

測試結束時的回呼。

void setTestType(IRemoteTest test)

公用建構函式

CountTestCasesCollector

public CountTestCasesCollector ()

CountTestCasesCollector

public CountTestCasesCollector (IRemoteTest test)

參數
test IRemoteTest

公用方法

onTestEnd

public void onTestEnd (DeviceMetricData testData, 
                 currentTestCaseMetrics)

測試案例結束時的回呼。這時應該要清理了。

參數
testData DeviceMetricData:保留測試案例資料的 DeviceMetricData。會與 BaseDeviceMetricCollector.onTestStart(com.android.tradefed.device.metric.DeviceMetricData) 期間相同的物件。

currentTestCaseMetrics :傳遞至 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map)) 的目前指標對應項目。

onTestRunEnd

public void onTestRunEnd (DeviceMetricData runData, 
                 currentRunMetrics)

測試結束時的回呼。這時應該要清理了。

參數
runData DeviceMetricData:儲存執行作業資料的 DeviceMetricData。會與 BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData) 期間相同的物件。

currentRunMetrics :傳遞至 ERROR(/#testRunEnded(long,Map)) 的目前指標對應項目。

setTestType

public void setTestType (IRemoteTest test)

參數
test IRemoteTest