PassingTestFileReporter

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)

公共构造函数

PassingTestFileReporter

public PassingTestFileReporter ()

公共方法

invocationEnded

public void invocationEnded (long elapsedTime)

报告调用已终止,无论是成功终止还是因某种错误条件而终止。

将由 TradeFederation 框架自动调用。

参数
elapsedTime long:调用的经过时间(以毫秒为单位)

invocationStarted

public void invocationStarted (IInvocationContext context)

报告测试调用的开始。

将由 TradeFederation 框架自动调用。报告程序需要替换此方法才能支持多设备报告。

参数
context IInvocationContext:调用相关信息

testResult

public void testResult (TestDescription test, 
                TestResult result)

参数
test TestDescription

result TestResult