SuiteResultReporter
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
公共建设者
SuiteResultReporter
public SuiteResultReporter ()
公开方法
getCompleteModules
public int getCompleteModules ()
退货 | |
---|---|
int |
getFailedTests
public long getFailedTests ()
退货 | |
---|---|
long |
getModulesAbi
publicgetModulesAbi ()
返回模块abi的映射:
退货 | |
---|---|
getPassedTests
public long getPassedTests ()
退货 | |
---|---|
long |
getSummary
public TestSummary getSummary ()
退货 | |
---|---|
TestSummary |
getTotalModules
public int getTotalModules ()
退货 | |
---|---|
int |
getTotalTests
public long getTotalTests ()
退货 | |
---|---|
long |
调用结束
public void invocationEnded (long elapsedTime)
参量 | |
---|---|
elapsedTime | long |
调用开始
public void invocationStarted (IInvocationContext context)
参量 | |
---|---|
context | IInvocationContext |
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
参量 | |
---|---|
moduleContext | IInvocationContext |
受保护的方法
getCurrentTime
protected long getCurrentTime ()
退货 | |
---|---|
long |
getEndTime
protected long getEndTime ()
返回调用的结束时间。
退货 | |
---|---|
long |
getStartTime
protected long getStartTime ()
返回调用的开始时间。
退货 | |
---|---|
long |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.