ReportPassedTests
public
class
ReportPassedTests
extends CollectingTestListener
implements
IConfigurationReceiver,
ISupportGranularResults
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.CollectingTestListener | |
| ↳ | com.android.tradefed.result.ReportPassedTests | |
在文件中报告可能的过滤器,以排除通过的测试。
摘要
公共构造函数 | |
|---|---|
ReportPassedTests()
|
|
公共方法 | |
|---|---|
void
|
invocationEnded(long elapsedTime)
报告调用已终止,无论是成功终止还是因某些错误 情况而终止。 |
void
|
invocationFailed(FailureDescription failure)
报告因某些错误情况而导致的不完整调用。 |
void
|
invocationStarted(IInvocationContext context)
报告测试调用的开始。 |
void
|
setConfiguration(IConfiguration configuration)
注入正在使用的 |
void
|
setLogger(ITestLogger logger)
|
boolean
|
supportGranularResults()
如果报告器支持精细结果,则返回 True;否则返回 False。 |
void
|
testModuleEnded()
报告模块运行结束。 |
void
|
testModuleStarted(IInvocationContext moduleContext)
报告模块运行开始。 |
void
|
testRunEnded(long elapsedTime, HashMap<String, MetricMeasurement.Metric> runMetrics)
报告测试运行结束。 |
公共构造函数
ReportPassedTests
public ReportPassedTests ()
公共方法
invocationEnded
public void invocationEnded (long elapsedTime)
报告调用已终止,无论是成功终止还是因某些错误 情况而终止。
将由 TradeFederation 框架自动调用。
| 参数 | |
|---|---|
elapsedTime |
long:调用所用的时间(以毫秒为单位) |
invocationFailed
public void invocationFailed (FailureDescription failure)
报告因某些错误情况而导致的不完整调用。
将由 TradeFederation 框架自动调用。
| 参数 | |
|---|---|
failure |
FailureDescription:描述失败原因的 FailureDescription |
invocationStarted
public void invocationStarted (IInvocationContext context)
报告测试调用的开始。
将由 TradeFederation 框架自动调用。报告器需要替换 此方法,以支持多个设备报告。
| 参数 | |
|---|---|
context |
IInvocationContext:有关调用的信息 |
setConfiguration
public void setConfiguration (IConfiguration configuration)
注入正在使用的 IConfiguration。
| 参数 | |
|---|---|
configuration |
IConfiguration |
supportGranularResults
public boolean supportGranularResults ()
如果报告器支持精细结果,则返回 True;否则返回 False。
| 返回 | |
|---|---|
boolean |
|
testModuleEnded
public void testModuleEnded ()
报告模块运行结束。
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
报告模块运行开始。此回调与 testModuleEnded() 相关联,并且在序列中是可选的。它仅在使用
模块的运行期间使用:基于套件的运行程序。
| 参数 | |
|---|---|
moduleContext |
IInvocationContext:模块的 IInvocationContext。 |
testRunEnded
public void testRunEnded (long elapsedTime,
HashMap<String, MetricMeasurement.Metric> runMetrics)报告测试运行结束。FIXME:我们不能有两个具有不同类型的 Map<> 接口,因此 我们必须在此处使用 HashMap。
| 参数 | |
|---|---|
elapsedTime |
long:设备报告的所用时间(以毫秒为单位) |
runMetrics |
HashMap:在测试运行结束时报告的键值对,带有 Metric。 |