IAutoRetriableTest

public interface IAutoRetriableTest
implements IRemoteTest

com.android.tradefed.testtype.retry.IAutoRetriableTest


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

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

まとめ

パブリックメソッド

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

パブリックメソッド

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

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デバイスの回復中にスローされる可能性があります