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)
テストを実行し、結果をリスナーに報告します。 |
default
void
|
setRetryAttemptNumber(int attemptNumber)
テストの再試行回数を設定します。 |
パブリック メソッド
run
public void run (ITestInvocationListener listener)
このメソッドは非推奨になりました。
代わりに run(TestInformation,ITestInvocationListener) を使用してください。
テストを実行し、結果をリスナーに報告します。
| パラメータ | |
|---|---|
listener |
ITestInvocationListener: テスト結果の ITestInvocationListener |
| 例外 | |
|---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
|
run
public void run (TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。
| パラメータ | |
|---|---|
testInfo |
TestInformation: テストの実行に役立つ情報を含む TestInformation オブジェクト。 |
listener |
ITestInvocationListener: テスト結果の ITestInvocationListener |
| 例外 | |
|---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
|
setRetryAttemptNumber
public void setRetryAttemptNumber (int attemptNumber)
テストの再試行回数を設定します。デフォルトでは何も行いません。
| パラメータ | |
|---|---|
attemptNumber |
int |