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 |
|
invocationEnded
public void invocationEnded (long elapsedTime)
| 参数 | |
|---|---|
elapsedTime |
long |
invocationStarted
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 |
|