遠程測試
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 |