通过测试文件报告程序
public class PassingTestFileReporter
extends TestResultListener
implements ITestInvocationListener
java.lang.Object | ||
↳ | com.android.tradefed.result.TestResultListener | |
↳ | com.android.tradefed.result.PassingTestFileReporter |
将通过的测试用例列表保存到测试文件的ITestInvocationListener
概括
公共构造函数 | |
---|---|
PassingTestFileReporter () |
公共方法 | |
---|---|
void | invocationEnded (long elapsedTime) 报告调用已终止,无论是成功终止还是由于某些错误情况。 |
void | invocationStarted ( IInvocationContext context) 报告测试调用的开始。 |
void | testResult ( TestDescription test, TestResult result) |
公共构造函数
通过测试文件报告程序
public PassingTestFileReporter ()
公共方法
调用结束
public void invocationEnded (long elapsedTime)
报告调用已终止,无论是成功终止还是由于某些错误情况。
将由 TradeFederation 框架自动调用。参数 | |
---|---|
elapsedTime | long :调用经过的时间(以毫秒为单位) |
调用开始
public void invocationStarted (IInvocationContext context)
报告测试调用的开始。
将由 TradeFederation 框架自动调用。记者需要覆盖此方法以支持多设备报告。
参数 | |
---|---|
context | IInvocationContext :有关调用的信息 |
测试结果
public void testResult (TestDescription test, TestResult result)
参数 | |
---|---|
test | TestDescription |
result | TestResult |