BaseRetryDecision
public
class
BaseRetryDecision
extends Object
implements
IConfigurationReceiver,
IRetryDecision,
ITestInformationReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.retry.BaseRetryDecision |
IRetryDecision의 기본 구현 기본 구현에서는 로컬 신호만 고려합니다.
요약
공개 생성자 | |
|---|---|
BaseRetryDecision()
재시도 결정의 생성자 |
|
공개 메서드 | |
|---|---|
void
|
addLastAttempt(List<TestRunResult> lastResults)
|
void
|
addToSkipRetryList(String filterEntry)
재시도를 건너뛰는 항목을 추가합니다. |
List<String>
|
getCommandLineArgs()
재시도 결정의 명령줄 인수를 반환합니다. |
CurrentInvocation.IsolationGrade
|
getIsolationGrade()
|
int
|
getMaxTestCaseAttempts()
자동 재시도 중 테스트 실행당 최대 시도 횟수입니다. |
int
|
getMaxTestCaseAttempts(ModuleDefinition module)
자동 재시도 중에 지정된 모듈의 테스트 실행당 최대 시도 횟수입니다. |
int
|
getMaxTestRunAttempts()
자동 재시도 중 테스트 실행당 최대 시도 횟수입니다. |
int
|
getMaxTestRunAttempts(ModuleDefinition module)
자동 재시도 중에 지정된 모듈의 테스트 실행당 최대 시도 횟수입니다. |
RetryStatistics
|
getRetryStatistics()
재시도를 나타내는 |
RetryStrategy
|
getRetryStrategy()
자동 재시도 중에 사용된 |
Set<String>
|
getSkipRetrySet()
|
TestInformation
|
getTestInformation()
|
boolean
|
isAutoRetryEnabled()
자동 재시도를 사용 설정할지 여부입니다. |
boolean
|
rebootAtLastAttempt()
마지막 시도 전에 기기를 재부팅할지 여부입니다. |
void
|
setConfiguration(IConfiguration configuration)
사용 중인 |
void
|
setInvocationContext(IInvocationContext context)
현재 호출 컨텍스트를 설정합니다. |
void
|
setTestInformation(TestInformation testInformation)
|
boolean
|
shouldRetry(IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, List<TestRunResult> previousResults, DeviceNotAvailableException dnae)
재시도를 시도해야 하는지 여부를 결정합니다. |
boolean
|
shouldRetry(IRemoteTest test, int attemptJustExecuted, List<TestRunResult> previousResults)
재시도를 시도해야 하는지 여부를 결정합니다. |
RetryPreparationDecision
|
shouldRetryPreparation(ModuleDefinition module, int attempt, int maxAttempt)
모듈 준비를 다시 시도해야 하는지 결정합니다. |
boolean
|
useUpdatedReporting()
업데이트된 보고서를 사용해야 하는 경우 true를 반환합니다. |
보호된 메서드 | |
|---|---|
void
|
isolateRetry(List<ITestDevice> devices)
|
공개 생성자
BaseRetryDecision
public BaseRetryDecision ()
재시도 결정의 생성자
공개 메서드
addLastAttempt
public void addLastAttempt (List<TestRunResult> lastResults)
shouldRetry(IRemoteTest,int,List)는 마지막 재시도 시도 전에 호출될 가능성이 높으므로 통계 목적으로 마지막 시도 결과가 누락될 수 있습니다. 이 방법을 사용하면 적절한 통계 계산을 위해 결과를 제공할 수 있습니다.
addToSkipRetryList
public void addToSkipRetryList (String filterEntry)
재시도를 건너뛰는 항목을 추가합니다.
| 매개변수 | |
|---|---|
filterEntry |
String |
getCommandLineArgs
public List<String> getCommandLineArgs ()
재시도 결정의 명령줄 인수를 반환합니다.
| 반환 | |
|---|---|
List<String> |
|
getIsolationGrade
public CurrentInvocation.IsolationGrade getIsolationGrade ()
| 반환 | |
|---|---|
CurrentInvocation.IsolationGrade |
|
getMaxTestCaseAttempts
public int getMaxTestCaseAttempts ()
자동 재시도 중 테스트 실행당 최대 시도 횟수입니다.
| 반환 | |
|---|---|
int |
|
getMaxTestCaseAttempts
public int getMaxTestCaseAttempts (ModuleDefinition module)
자동 재시도 중에 지정된 모듈의 테스트 실행당 최대 시도 횟수입니다.
| 매개변수 | |
|---|---|
module |
ModuleDefinition |
| 반환 | |
|---|---|
int |
|
getMaxTestRunAttempts
public int getMaxTestRunAttempts ()
자동 재시도 중 테스트 실행당 최대 시도 횟수입니다.
| 반환 | |
|---|---|
int |
|
getMaxTestRunAttempts
public int getMaxTestRunAttempts (ModuleDefinition module)
자동 재시도 중에 지정된 모듈의 테스트 실행당 최대 시도 횟수입니다.
| 매개변수 | |
|---|---|
module |
ModuleDefinition |
| 반환 | |
|---|---|
int |
|
getRetryStatistics
public RetryStatistics getRetryStatistics ()
재시도를 나타내는 RetryStatistics를 반환합니다.
| 반환 | |
|---|---|
RetryStatistics |
|
getRetryStrategy
public RetryStrategy getRetryStrategy ()
자동 재시도 중에 사용된 RetryStrategy입니다.
| 반환 | |
|---|---|
RetryStrategy |
|
getSkipRetrySet
public Set<String> getSkipRetrySet ()
| 반환 | |
|---|---|
Set<String> |
|
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, List<TestRunResult> previousResults, DeviceNotAvailableException dnae)
재시도를 시도해야 하는지 여부를 결정합니다. 또한 다시 시도할 IRemoteTest를 필요한 대로 변경합니다 (필터 적용 등).
| 매개변수 | |
|---|---|
test |
IRemoteTest: 방금 실행된 IRemoteTest입니다. |
module |
ModuleDefinition: 테스트 모듈의 ModuleDefinition 객체입니다. |
attemptJustExecuted |
int: 방금 실행한 시도 횟수입니다. |
previousResults |
List: 방금 실행된 테스트의 TestRunResult 목록입니다. |
dnae |
DeviceNotAvailableException: 기기 DeviceNotAvailableException을 사용할 수 없음 예외입니다. |
| 반환 | |
|---|---|
boolean |
재시도해야 하면 True, 그렇지 않으면 False입니다. |
| 생성 값 | |
|---|---|
DeviceNotAvailableException |
|
shouldRetry
public boolean shouldRetry (IRemoteTest test, int attemptJustExecuted, List<TestRunResult> previousResults)
재시도를 시도해야 하는지 여부를 결정합니다. 또한 다시 시도할 IRemoteTest를 필요한 대로 변경합니다 (필터 적용 등).
| 매개변수 | |
|---|---|
test |
IRemoteTest: 방금 실행된 IRemoteTest입니다. |
attemptJustExecuted |
int: 방금 실행한 시도 횟수입니다. |
previousResults |
List: 방금 실행된 테스트의 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 (List<ITestDevice> devices)
| 매개변수 | |
|---|---|
devices |
List |
| 생성 값 | |
|---|---|
DeviceNotAvailableException |
|