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