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 ()
公共方法
createFormatter
public abstract IFormatterGenerator createFormatter ()
返回要使用的 IFormatterGenerator
的新实例。
返回 | |
---|---|
IFormatterGenerator |
finalizeResults
public abstract void finalizeResults (IFormatterGenerator generator, SuiteResultHolder resultHolder)
处理使用 IFormatterGenerator
和 SuiteResultHolder
以生成一些格式化结果的步骤。
invocationEnded
public final void invocationEnded (long elapsedTime)
报告调用已终止,无论是成功终止还是因某种错误条件而终止。
将由 TradeFederation 框架自动调用。
参数 | |
---|---|
elapsedTime |
long :调用的经过时间(以毫秒为单位) |
invocationFailed
public void invocationFailed (FailureDescription failure)
参数 | |
---|---|
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
由于某些错误条件,报告调用不完整。
将由 TradeFederation 框架自动调用。
参数 | |
---|---|
cause |
Throwable :失败的 Throwable 原因 |
setConfiguration
public final void setConfiguration (IConfiguration configuration)
注入正在使用的 IConfiguration
。
参数 | |
---|---|
configuration |
IConfiguration |