IRemoteTest
public interface IRemoteTest
com.android.tradefed.testtype.IRemoteTest |
結果をITestInvocationListener
に直接報告するテスト。
これには、JUnit よりも次の利点があります。
- リモート テストの結果を JUnit テスト オブジェクトから不必要にマーシャリングおよびアンマーシャリングする必要がないため、Android デバイスでリモートで実行されたテストの結果を簡単に報告できます。
- テスト指標のレポートをサポート
まとめ
公開メソッド | |
---|---|
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 |