套件结果报告器
public class SuiteResultReporter
extends CollectingTestListener
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.result.suite.SuiteResultReporter |
收集整个套件调用的测试结果并输出最终结果。
概括
嵌套类 | |
---|---|
class | SuiteResultReporter.ModulePrepTimes 一个模块的准备和拆卸时间的对象持有者。 |
字段 | |
---|---|
public static final String | SUITE_REPORTER_SOURCE
|
公共构造函数 | |
---|---|
SuiteResultReporter () |
公共方法 | |
---|---|
int | getCompleteModules () |
long | getFailedTests () |
getModulesAbi () 返回模块 abi 的映射: | |
long | getPassedTests () |
TestSummary | getSummary () |
int | getTotalModules () |
long | getTotalTests () |
void | invocationEnded (long elapsedTime) 报告调用已终止,无论是成功终止还是由于某些错误情况。 |
void | invocationStarted ( IInvocationContext context) 报告测试调用的开始。 |
void | testModuleStarted ( IInvocationContext moduleContext) 报告模块运行的开始。 |
受保护的方法 | |
---|---|
long | getCurrentTime () |
long | getEndTime () 返回调用的结束时间。 |
long | getStartTime () 返回调用的开始时间。 |
字段
SUITE_REPORTER_SOURCE
public static final String SUITE_REPORTER_SOURCE
公共构造函数
套件结果报告器
public SuiteResultReporter ()
公共方法
获取完整模块
public int getCompleteModules ()
退货 | |
---|---|
int |
获取失败测试
public long getFailedTests ()
退货 | |
---|---|
long |
获取模块Abi
publicgetModulesAbi ()
返回模块 abi 的映射:
退货 | |
---|---|
获得通过测试
public long getPassedTests ()
退货 | |
---|---|
long |
getTotalModules
public int getTotalModules ()
退货 | |
---|---|
int |
获取总测试
public long getTotalTests ()
退货 | |
---|---|
long |
调用结束
public void invocationEnded (long elapsedTime)
报告调用已终止,无论是成功终止还是由于某些错误情况。
将由 TradeFederation 框架自动调用。参数 | |
---|---|
elapsedTime | long :调用经过的时间(以毫秒为单位) |
调用开始
public void invocationStarted (IInvocationContext context)
报告测试调用的开始。
将由 TradeFederation 框架自动调用。记者需要覆盖此方法以支持多设备报告。
参数 | |
---|---|
context | IInvocationContext :有关调用的信息 |
测试模块启动
public void testModuleStarted (IInvocationContext moduleContext)
报告模块运行的开始。此回调与testModuleEnded()
关联,并且在序列中是可选的。它仅在使用模块的运行期间使用:基于套件的运行器。
参数 | |
---|---|
moduleContext | IInvocationContext :模块的IInvocationContext 。 |
受保护的方法
获取当前时间
protected long getCurrentTime ()
退货 | |
---|---|
long |
获取结束时间
protected long getEndTime ()
返回调用的结束时间。
退货 | |
---|---|
long |
获取开始时间
protected long getStartTime ()
返回调用的开始时间。
退货 | |
---|---|
long |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-03-30。
[]
[]