BaseRetryDecision

public class BaseRetryDecision
extends Object implements IConfigurationReceiver, IRetryDecision, ITestInformationReceiver

java.lang.Object
   ↳ com.android.tradefed.retry.BaseRetryDecision


IRetryDecision의 기본 구현입니다. 기본 구현은 로컬 신호만 고려합니다.

요약

공개 생성자

BaseRetryDecision()

재시도 결정의 생성자

공개 메서드

void addLastAttempt( lastResults)

ERROR(/#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List))는 마지막 재시도 전에 호출될 가능성이 높으므로 통계 목적으로 마지막 시도 결과가 누락될 수 있습니다.

void addToSkipRetryList(String filterEntry)

재시도를 건너뛰는 항목을 추가합니다.

static getFailedTestCases( previousResults)

재시도해야 하는 실패한 테스트 사례의 맵을 반환합니다.

CurrentInvocation.IsolationGrade getIsolationGrade()
int getMaxRetryCount()

자동 재시도 중에 최대로 시도할 수 있는 횟수입니다.

int getMaxRetryCount(ModuleDefinition module)

지정된 모듈의 자동 재시도 중에 최대로 시도할 수 있는 횟수입니다.

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)

재시도할지 여부를 결정합니다.

boolean shouldRetry(IRemoteTest test, int attemptJustExecuted, previousResults)

재시도할지 여부를 결정합니다.

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

모듈 준비를 다시 시도할지 여부를 결정합니다.

boolean useUpdatedReporting()

업데이트된 보고를 사용해야 하는 경우 true를 반환합니다.

보호된 메서드

void isolateRetry( devices)

공개 생성자

BaseRetryDecision

public BaseRetryDecision ()

재시도 결정의 생성자

공개 메서드

addLastAttempt

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

getMaxRetryCount

public int getMaxRetryCount (ModuleDefinition module)

지정된 모듈의 자동 재시도 중에 최대로 시도할 수 있는 횟수입니다.

매개변수
module ModuleDefinition

반환 값
int

getRetryStatistics

public RetryStatistics getRetryStatistics ()

재시도를 나타내는 RetryStatistics를 반환합니다.

반환 값
RetryStatistics

getRetryStrategy

public RetryStrategy getRetryStrategy ()

자동 재시도 중에 사용되는 RetryStrategy입니다.

반환 값
RetryStrategy

getSkipRetrySet

public  getSkipRetrySet ()

반환 값

getTestInformation

public TestInformation getTestInformation ()

반환 값
TestInformation

isAutoRetryEnabled

public boolean isAutoRetryEnabled ()

자동 재시도를 사용 설정할지 여부입니다.

반환 값
boolean

rebootAtLastAttempt

public boolean rebootAtLastAttempt ()

마지막 시도 전에 기기를 재부팅할지 여부입니다.

반환 값
boolean

setConfiguration

public void setConfiguration (IConfiguration configuration)

사용 중인 IConfiguration를 삽입합니다.

매개변수
configuration IConfiguration

setInvocationContext

public void setInvocationContext (IInvocationContext context)

현재 호출 컨텍스트를 설정합니다.

매개변수
context IInvocationContext

setTestInformation

public void setTestInformation (TestInformation testInformation)

매개변수
testInformation TestInformation

shouldRetry

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

shouldRetry

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

재시도할지 여부를 결정합니다. 또한 재시도할 IRemoteTest를 필요한 대로 변경합니다 (필터 적용 등).

매개변수
test IRemoteTest: 방금 실행된 IRemoteTest입니다.

attemptJustExecuted int: 방금 실행한 시도 횟수입니다.

previousResults : 방금 실행된 테스트의 TestRunResult 목록입니다.

반환 값
boolean 다시 시도해야 하는 경우 true를, 그렇지 않은 경우 false를 반환합니다.

생성 값
DeviceNotAvailableException

shouldRetryPreparation

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

모듈 준비를 다시 시도할지 여부를 결정합니다.

매개변수
module ModuleDefinition

attempt int

maxAttempt int

반환 값
RetryPreparationDecision

useUpdatedReporting

public boolean useUpdatedReporting ()

업데이트된 보고를 사용해야 하는 경우 true를 반환합니다.

반환 값
boolean

보호된 메서드

isolateRetry

protected void isolateRetry ( devices)

매개변수
devices

생성 값
DeviceNotAvailableException