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,
报告测试运行结束。 |
公共构造函数
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,
runMetrics) 报告测试运行结束。
| 参数 | |
|---|---|
elapsedTime |
long:设备报告的经过时间(以毫秒为单位) |
runMetrics |
:测试运行结束时报告的键值对 |