ReportPassedTests

public class ReportPassedTests
extends CollectingTestListener implements IConfigurationReceiver, ISupportGranularResults

java.lang.Object
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.android.tradefed.result.ReportPassedTests


在檔案中回報可能的篩選器,以便排除已通過測試的項目。

摘要

公用建構函式

ReportPassedTests()

公用方法

void invocationEnded(long elapsedTime)

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

void invocationFailed(FailureDescription failure)

因某些錯誤情況而回報不完整的叫用。

void invocationStarted(IInvocationContext context)

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

void setConfiguration(IConfiguration configuration)

插入正在使用的 IConfiguration

void setLogger(ITestLogger logger)
boolean supportGranularResults()

如果報表提供詳細結果,則傳回「是」;否則傳回「否」。

void testModuleEnded()

回報模組執行作業結束。

void testModuleStarted(IInvocationContext moduleContext)

回報模組開始執行的時間。

void testRunEnded(long elapsedTime, runMetrics)

回報測試執行結束。

公用建構函式

ReportPassedTests

public ReportPassedTests ()

公用方法

invocationEnded

public void invocationEnded (long elapsedTime)

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

會由 TradeFederation 架構自動呼叫。

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

invocationFailed

public void invocationFailed (FailureDescription failure)

由於某些錯誤情況,因此回報未完成的叫用作業。

會由 TradeFederation 架構自動呼叫。

參數
failure FailureDescription:描述失敗原因的 FailureDescription

invocationStarted

public void invocationStarted (IInvocationContext context)

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

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

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

setConfiguration

public void setConfiguration (IConfiguration configuration)

插入正在使用的 IConfiguration

參數
configuration IConfiguration

setLogger

public void setLogger (ITestLogger logger)

參數
logger ITestLogger

supportGranularResults

public boolean supportGranularResults ()

如果回報器支援精細結果,則傳回 True,否則傳回 false。

傳回
boolean

testModuleEnded

public void testModuleEnded ()

回報模組執行作業結束。

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

回報模組開始執行的時間。這個回呼與 testModuleEnded() 相關聯,在序列中為選用項目。只有在使用模組:套件式執行程式的執行期間才會使用。

參數
moduleContext IInvocationContext:模組的 IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

回報測試執行結束。

參數
elapsedTime long:裝置回報的經過時間,以毫秒為單位

runMetrics :測試執行結束時回報的鍵/值組合