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()
getModulesAbi()

傳回模組 ABI 的對應:

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

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

void invocationStarted(IInvocationContext context)

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

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  getModulesAbi ()

傳回模組 ABI 的對應:.

傳回

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