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