SuiteResultReporter

public class SuiteResultReporter
extends CollectingTestListener

java.lang.Object
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.android.tradefed.result.suite.SuiteResultReporter


收集整個套件調用的測試結果,並輸出最終結果。

摘要

巢狀類別

class SuiteResultReporter.ModulePrepTimes

一個模組的準備和清除時間的物件持有者。 

欄位

public static final String SUITE_REPORTER_SOURCE

公用建構函式

SuiteResultReporter()

公用方法

int getCompleteModules()
long getFailedTests()
Map<String, IAbi> getModulesAbi()

傳回模組 ABI 的對應:

long getPassedTests()
TestSummary getSummary()
int getTotalModules()
long getTotalTests()
void invocationEnded(long elapsedTime)

回報是否因某種錯誤狀況而終止呼叫 (無論是否成功)。

void invocationStarted(IInvocationContext context)

Reports the start of the test invocation.

void testModuleStarted(IInvocationContext moduleContext)

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

受保護的方法

long getCurrentTime()
long getEndTime()

傳回呼叫的結束時間。

long getStartTime()

傳回調用的開始時間。

欄位

SUITE_REPORTER_SOURCE

public static final String SUITE_REPORTER_SOURCE

公用建構函式

SuiteResultReporter

public SuiteResultReporter ()

公用方法

getCompleteModules

public int getCompleteModules ()

傳回
int

getFailedTests

public long getFailedTests ()

傳回
long

getModulesAbi

public Map<String, IAbi> getModulesAbi ()

傳回模組 ABI 的對應:

傳回
Map<String, IAbi>

getPassedTests

public long getPassedTests ()

傳回
long

getSummary

public TestSummary getSummary ()

傳回
TestSummary

getTotalModules

public int getTotalModules ()

傳回
int

getTotalTests

public long getTotalTests ()

傳回
long

invocationEnded

public void invocationEnded (long elapsedTime)

回報是否因某種錯誤情況而終止呼叫 (無論是否成功)。

TradeFederation 架構會自動呼叫。

參數
elapsedTime long:以毫秒為單位的呼叫經過時間

invocationStarted

public void invocationStarted (IInvocationContext context)

回報測試呼叫的開始時間。

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

參數
context IInvocationContext:叫用相關資訊

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

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

參數
moduleContext IInvocationContext:模組的 IInvocationContext

受保護的方法

getCurrentTime

protected long getCurrentTime ()

傳回
long

getEndTime

protected long getEndTime ()

傳回叫用的結束時間。

傳回
long

getStartTime

protected long getStartTime ()

傳回叫用的開始時間。

傳回
long