IAutoRetriableTest
public interface IAutoRetriableTest
implements IRemoteTest
com.android.tradefed.testtype.retry.IAutoRetriableTest |
以下のためのインタフェースIRemoteTest
実装していないITestFilterReceiver
まだ自動リトライをサポートしたいと考えています。
ほとんどのランナーのための勧告は、実装することですITestFilterReceiver
し、テストがハンドルへのハーネスのために動作しているかをきめ細かく制御できます。ただし、状況によっては、それが不可能な場合があり、委任された形式の再試行が必要になります。
概要
パブリックメソッド | |
---|---|
default boolean | shouldRetry (int attemptJustExecuted, previousResults) shouldRetry (int attemptJustExecuted, previousResults) |
パブリックメソッド
shouldRetry
public boolean shouldRetry (int attemptJustExecuted,previousResults)
委任された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 だけ実行されたことをテストします。 |
戻り値 | |
---|---|
boolean | 再試行する必要がある場合はTrue、それ以外の場合はFalse。 |
投げる | |
---|---|
DeviceNotAvailableException | デバイスのリカバリ中にスローされる可能性があります |