IAutoRetriableTest

public interface IAutoRetriableTest
implements IRemoteTest

com.android.tradefed.testtype.retry.IAutoRetriableTest


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

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

概要

パブリック メソッド

default boolean shouldRetry(int attemptJustExecuted, List<TestRunResult> previousResults, Set<String> skipList)

IRetryDecision.shouldRetry(IRemoteTest,int,List) から委任。

パブリック メソッド

shouldRetry

public boolean shouldRetry (int attemptJustExecuted, 
                List<TestRunResult> previousResults, 
                Set<String> skipList)

IRetryDecision.shouldRetry(IRemoteTest,int,List) から委任。再試行を試みるかどうかを 決定します。また、再試行する IRemoteTest に 必要な変更(フィルタの適用、次の実行の準備など)を行います。

パラメータ
attemptJustExecuted int: 実行したばかりの試行回数。

previousResults List: 実行したばかりのテストの TestRunResult のリスト。

skipList Set: 再試行しないアイテムのセット。

戻り値
boolean 再試行する場合は True、それ以外の場合は False。

例外
DeviceNotAvailableException デバイスの復旧中にスローされる可能性があります