通过测试文件报告器

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