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 |