格式化生成器報告器
public abstract class FormattedGeneratorReporter
extends SuiteResultReporter
implements IConfigurationReceiver
java.lang.Object | |||
↳ | com.android.tradefed.result.CollectingTestListener | ||
↳ | com.android.tradefed.result.suite.SuiteResultReporter | ||
↳ | com.android.tradefed.result.suite.FormattedGeneratorReporter |
允許產生特定格式報告的報告器。 TODO:修復記錄的文件
概括
公共構造函數 | |
---|---|
FormattedGeneratorReporter () |
公共方法 | |
---|---|
abstract IFormatterGenerator | createFormatter () 傳回要使用的 |
abstract void | finalizeResults ( IFormatterGenerator generator, SuiteResultHolder resultHolder) 使用 |
final IConfiguration | getConfiguration () |
final void | invocationEnded (long elapsedTime) 報告呼叫已終止,無論是成功還是由於某些錯誤情況。 |
void | invocationFailed ( FailureDescription failure) |
void | invocationFailed (Throwable cause) 由於某些錯誤情況而報告不完整的呼叫。 |
final void | setConfiguration ( IConfiguration configuration) 注入正在使用的 |
公共構造函數
格式化生成器報告器
public FormattedGeneratorReporter ()
公共方法
建立格式化程式
public abstract IFormatterGenerator createFormatter ()
傳回要使用的IFormatterGenerator
的新實例。
退貨 | |
---|---|
IFormatterGenerator |
最終確定結果
public abstract void finalizeResults (IFormatterGenerator generator, SuiteResultHolder resultHolder)
使用IFormatterGenerator
和SuiteResultHolder
來產生一些格式化結果的步驟。
呼叫結束
public final void invocationEnded (long elapsedTime)
報告呼叫已終止,無論是成功還是由於某些錯誤情況。
將由 TradeFederation 框架自動呼叫。參數 | |
---|---|
elapsedTime | long :呼叫所花費的時間(以毫秒為單位) |
呼叫失敗
public void invocationFailed (Throwable cause)
由於某些錯誤情況而報告不完整的呼叫。
將由 TradeFederation 框架自動呼叫。參數 | |
---|---|
cause | Throwable :失敗的Throwable 原因 |
設定配置
public final void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
參數 | |
---|---|
configuration | IConfiguration |