远程测试

public interface IRemoteTest

com.android.tradefed.testtype.IRemoteTest


直接将结果报告给ITestInvocationListener的测试。

与 JUnit 相比,它具有以下优点。

  • 更容易报告在 Android 设备上远程运行的测试的结果,因为远程测试的结果不需要从 JUnit Test 对象进行不必要的编组和取消编组。
  • 支持报告测试指标

概括

公共方法

default void run ( ITestInvocationListener listener)

此方法已被弃用。请改用run(com.android.tradefed.invoker.TestInformation, com.android.tradefed.result.ITestInvocationListener)

default void run ( TestInformation testInfo, ITestInvocationListener listener)

运行测试,并将结果报告给侦听器。

公共方法

跑步

public void run (ITestInvocationListener listener)

此方法已被弃用。
请改用run(com.android.tradefed.invoker.TestInformation, com.android.tradefed.result.ITestInvocationListener)

运行测试,并将结果报告给侦听器。

参数
listener ITestInvocationListener :测试结果的ITestInvocationListener

投掷
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

跑步

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

运行测试,并将结果报告给侦听器。

参数
testInfo TestInformationTestInformation对象包含运行测试的有用信息。

listener ITestInvocationListener :测试结果的ITestInvocationListener

投掷
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException