FormattedGeneratorReporter
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) 注入正在使用的 |
公共構造函數
FormattedGeneratorReporter
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 : 失敗的ERROR(/Throwable) 原因 |
設置配置
public final void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
參數 | |
---|---|
configuration | IConfiguration |