Google is committed to advancing racial equity for Black communities. See how.
This page was translated by the Cloud Translation API.
Switch to English

ScreenshotOnFailureCollector

public class ScreenshotOnFailureCollector
extends BaseDeviceMetricCollector

java.lang.Object
com.android.tradefed.device.metric.BaseDeviceMetricCollector
com.android.tradefed.device.metric.ScreenshotOnFailureCollector


當測試用例失敗時,收集器將捕獲並記錄屏幕截圖。

摘要

公共建設者

ScreenshotOnFailureCollector ()

公開方法

void onTestFail ( DeviceMetricData testData, TestDescription test)

測試用例失敗時回調。

公共建設者

ScreenshotOnFailureCollector

public ScreenshotOnFailureCollector ()

公開方法

onTestFail

public void onTestFail (DeviceMetricData testData, 
                TestDescription test)

測試用例失敗時回調。

參量
testData DeviceMetricData :保存測試用例數據的DeviceMetricData

test TestDescriptionTestDescription的測試用例的TestDescription