远程测试
public interface IRemoteTest
com.android.tradefed.testtype.IRemoteTest |
直接向ITestInvocationListener
报告结果的测试。
与 JUnit 相比,这具有以下优势。
- 更容易报告在 Android 设备上远程运行的测试结果,因为远程测试的结果不需要从 JUnit 测试对象进行不必要的编组和解组。
- 支持报告测试指标
概括
公共方法 | |
---|---|
default void | run ( ITestInvocationListener listener) 此方法已弃用。请改用 |
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 | TestInformation :包含运行测试的有用信息的TestInformation 对象。 |
listener | ITestInvocationListener : 测试结果的ITestInvocationListener |
投掷 | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |