PassingTestFileReporter

public class PassingTestFileReporter
extends TestResultListener implements ITestInvocationListener

java.lang.Object
   ↳ com.android.tradefed.result.TestResultListener
     ↳ com.android.tradefed.result.PassingTestFileReporter


將通過測試的測試案例清單儲存至測試檔案的 ITestInvocationListener

摘要

公用建構函式

PassingTestFileReporter()

公用方法

void invocationEnded(long elapsedTime)

回報叫用已終止,無論是成功或因某些錯誤條件而終止。

void invocationStarted(IInvocationContext context)

回報測試叫用作業的開始時間。

void testResult(TestDescription test, TestResult result)

公用建構函式

PassingTestFileReporter

public PassingTestFileReporter ()

公用方法

invocationEnded

public void invocationEnded (long elapsedTime)

回報叫用已終止,無論是成功或因某些錯誤條件而終止。

會由 TradeFederation 架構自動呼叫。

參數
elapsedTime long:叫用作業的經過時間 (以毫秒為單位)

invocationStarted

public void invocationStarted (IInvocationContext context)

回報測試叫用作業的開始時間。

會由 TradeFederation 架構自動呼叫。回報器需要覆寫這個方法,才能支援多裝置回報。

參數
context IInvocationContext:叫用作業相關資訊

testResult

public void testResult (TestDescription test, 
                TestResult result)

參數
test TestDescription

result TestResult