IAutoRetriableTest

public interface IAutoRetriableTest
implements IRemoteTest

com.android.tradefed.testtype.retry.IAutoRetriableTest


ITestFilterReceiver実装していないが、自動再試行をサポートしたいIRemoteTestのインターフェイス。

ほとんどのランナーに推奨されるのは、 ITestFilterReceiverを実装し、ハーネスが処理するために実行中のテストをきめ細かく制御できるようにすることです。ただし、状況によっては、それが不可能な場合があり、委任された形式の再試行が必要になります。

まとめ

公開メソッド

default boolean shouldRetry (int attemptJustExecuted, previousResults) 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)) .

公開メソッド

再試行する必要があります

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デバイスの回復中に投げることができます