IAutoRetriableTest
public
interface
IAutoRetriableTest
implements
IRemoteTest
| com.android.tradefed.testtype.retry.IAutoRetriableTest |
ITestFilterReceiver を実装していないが、自動再試行をサポートする IRemoteTest のインターフェース。
ほとんどのランナーには、ITestFilterReceiver を実装し、ハーネスが処理する実行テストを細かく制御することをおすすめします。ただし、状況によってはそれが不可能な場合があり、委任された形の再試行が必要になることがあります。
概要
パブリック メソッド | |
|---|---|
default
boolean
|
shouldRetry(int attemptJustExecuted,
|
パブリック メソッド
shouldRetry
public boolean shouldRetry (int attemptJustExecuted,
previousResults,
skipList) ERROR(IRetryDecision.shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision.shouldRetry(IRemoteTest, int, List)) から委任された連絡先。再試行を試みるかどうかを決定します。また、再試行する IRemoteTest に必要な変更を加えます(フィルタの適用、次の実行の準備など)。
| パラメータ | |
|---|---|
attemptJustExecuted |
int: 実行した試行回数。 |
previousResults |
: 実行したテストの TestRunResult のリスト。 |
skipList |
: 再試行しないアイテムのセット。 |
| 戻り値 | |
|---|---|
boolean |
再試行する必要がある場合は true、そうでない場合は false。 |
| 例外 | |
|---|---|
DeviceNotAvailableException |
デバイスの復元中にスローされる可能性がある |