格式化生成器報告器
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 |