透過測試文件報告器

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)

公共構造函數

透過測試文件報告器

public PassingTestFileReporter ()

公共方法

呼叫結束

public void invocationEnded (long elapsedTime)

報告呼叫已終止,無論是成功還是由於某些錯誤情況。

將由 TradeFederation 框架自動呼叫。

參數
elapsedTime long :呼叫所花費的時間(以毫秒為單位)

調用開始

public void invocationStarted (IInvocationContext context)

報告測試調用的開始。

將由 TradeFederation 框架自動呼叫。記者需要重寫此方法以支援多設備報告。

參數
context IInvocationContext :有關呼叫的信息

測試結果

public void testResult (TestDescription test, 
                TestResult result)

參數
test TestDescription

result TestResult