コレクションでコンテンツを整理 必要に応じて、コンテンツの保存と分類を行います。

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)

委任されたERROR(IRetryDecision#shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision#shouldRetry(IRemoteTest, int, List))

パブリックメソッド

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