套件结果报告器

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

public  getModulesAbi ()

返回模块 abi 的映射:

退货

获得通过的测试

public long getPassedTests ()

退货
long

获取摘要

public TestSummary getSummary ()

退货
TestSummary

获取模块总数

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