BaseRetryDecision

public class BaseRetryDecision
extends Object implements IRetryDecision , IConfigurationReceiver , ITestInformationReceiver

java.lang.オブジェクト
com.android.tradefed.retry.BaseRetryDecision


IRetryDecisionの基本実装。基本実装ではローカル信号のみが考慮されます。

まとめ

パブリックコンストラクター

BaseRetryDecision ()

再試行決定のコンストラクタ

パブリックメソッド

void addLastAttempt ( lastResults) addLastAttempt ( lastResults)

ERROR(/#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List))最後の再試行の前に呼び出される可能性が高いため、統計目的で最後の試行結果が欠落している可能性があります。

void addToSkipRetryList (String filterEntry)

再試行をスキップするにはエントリを追加します。

static getFailedTestCases ( previousResults) getFailedTestCases ( previousResults)

再試行する必要がある失敗したテスト ケースのマップを返します。

CurrentInvocation.IsolationGrade getIsolationGrade ()
int getMaxRetryCount ()

自動再試行中の最大試行回数。

RetryStatistics getRetryStatistics ()

再試行を表すRetryStatisticsを返します。

RetryStrategy getRetryStrategy ()

自動再試行中に使用されるRetryStrategy

getSkipRetrySet ()
TestInformation getTestInformation ()
boolean isAutoRetryEnabled ()

自動再試行を有効にするかどうか。

boolean rebootAtLastAttempt ()

最後の試行の前にデバイスを再起動するかどうか。

void setConfiguration ( IConfiguration configuration)

使用中のIConfigurationを挿入します。

void setInvocationContext ( IInvocationContext context)

現在の呼び出しコンテキストを設定します。

void setTestInformation ( TestInformation testInformation)
boolean shouldRetry ( IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, previousResults, DeviceNotAvailableException dnae) shouldRetry ( IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, previousResults, DeviceNotAvailableException dnae)

再試行するかどうかを決定します。

boolean shouldRetry ( IRemoteTest test, int attemptJustExecuted, previousResults) shouldRetry ( IRemoteTest test, int attemptJustExecuted, previousResults)

再試行するかどうかを決定します。

RetryPreparationDecision shouldRetryPreparation ( ModuleDefinition module, int attempt, int maxAttempt)

モジュールの準備を再試行するかどうかを決定します。

boolean useUpdatedReporting ()

更新されたレポートを使用する必要がある場合は true を返します。

保護されたメソッド

void isolateRetry ( devices) isolateRetry ( devices)

パブリックコンストラクター

BaseRetryDecision

public BaseRetryDecision ()

再試行決定のコンストラクタ

パブリックメソッド

最終試行を追加

public void addLastAttempt ( lastResults)

ERROR(/#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List))最後の再試行の前に呼び出される可能性が高いため、統計目的で最後の試行結果が欠落している可能性があります。この方法により、これらの結果を適切な統計計算に提供できるようになります。

addToSkipRetryList

public void addToSkipRetryList (String filterEntry)

再試行をスキップするにはエントリを追加します。

パラメーター
filterEntry String

getFailedTestCases

public static  getFailedTestCases ( previousResults)

再試行する必要がある失敗したテスト ケースのマップを返します。

パラメーター
previousResults

戻り値

getIsolationGrade

public CurrentInvocation.IsolationGrade getIsolationGrade ()

戻り値
CurrentInvocation.IsolationGrade

getMaxRetryCount

public int getMaxRetryCount ()

自動再試行中の最大試行回数。

戻り値
int

getRetryStatistics

public RetryStatistics getRetryStatistics ()

再試行を表すRetryStatisticsを返します。

戻り値
RetryStatistics

getRetry戦略

public RetryStrategy getRetryStrategy ()

自動再試行中に使用されるRetryStrategy

戻り値
RetryStrategy

getSkipRetrySet

public  getSkipRetrySet ()

戻り値

テスト情報の取得

public TestInformation getTestInformation ()

戻り値
TestInformation

isAutoRetryEnabled

public boolean isAutoRetryEnabled ()

自動再試行を有効にするかどうか。

戻り値
boolean

最終試行時の再起動

public boolean rebootAtLastAttempt ()

最後の試行の前にデバイスを再起動するかどうか。

戻り値
boolean

set構成

public void setConfiguration (IConfiguration configuration)

使用中のIConfigurationを挿入します。

パラメーター
configuration IConfiguration

setInvocationContext

public void setInvocationContext (IInvocationContext context)

現在の呼び出しコンテキストを設定します。

パラメーター
context IInvocationContext

setTestInformation

public void setTestInformation (TestInformation testInformation)

パラメーター
testInformation TestInformation

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

public boolean shouldRetry (IRemoteTest test, 
                ModuleDefinition module, 
                int attemptJustExecuted, 
                 previousResults, 
                DeviceNotAvailableException dnae)

再試行するかどうかを決定します。また、再試行するIRemoteTestに必要な変更を加えます (フィルターの適用など)。

パラメーター
test IRemoteTest : 実行されたばかりのIRemoteTest

module ModuleDefinition : テスト モジュールのModuleDefinitionオブジェクト。

attemptJustExecuted int : 実行したばかりの試行の数。

previousResults : 実行されたばかりのテストのTestRunResultのリスト。

dnae DeviceNotAvailableException : デバイスが利用できない例外のDeviceNotAvailableException

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

投げる
DeviceNotAvailableException

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

public boolean shouldRetry (IRemoteTest test, 
                int attemptJustExecuted, 
                 previousResults)

再試行するかどうかを決定します。また、再試行するIRemoteTestに必要な変更を加えます (フィルターの適用など)。

パラメーター
test IRemoteTest : 実行されたばかりのIRemoteTest

attemptJustExecuted int : 実行したばかりの試行の数。

previousResults : 実行されたばかりのテストのTestRunResultのリスト。

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

投げる
DeviceNotAvailableException

shouldRetry準備

public RetryPreparationDecision shouldRetryPreparation (ModuleDefinition module, 
                int attempt, 
                int maxAttempt)

モジュールの準備を再試行するかどうかを決定します。

パラメーター
module ModuleDefinition

attempt int

maxAttempt int

戻り値
RetryPreparationDecision

useUpdatedReporting

public boolean useUpdatedReporting ()

更新されたレポートを使用する必要がある場合は true を返します。

戻り値
boolean

保護されたメソッド

分離再試行

protected void isolateRetry ( devices)

パラメーター
devices

投げる
DeviceNotAvailableException