IRemoteTest
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 |
|