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