IAutoRetriableTest

public interface IAutoRetriableTest
implements IRemoteTest

com.android.tradefed.testtype.retry.IAutoRetriableTest


ITestFilterReceiver를 구현하지 않지만 자동 재시도를 지원하려는 IRemoteTest의 인터페이스입니다.

대부분의 런너의 경우 ITestFilterReceiver를 구현하고 하네스가 처리할 테스트를 세부적으로 제어하는 것이 좋습니다. 하지만 경우에 따라 불가능할 수 있으며 위임된 형태의 재시도가 필요할 수 있습니다.

요약

공개 메서드

default boolean shouldRetry(int attemptJustExecuted, previousResults, skipList)

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, 
                 skipList)

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 목록입니다.

skipList : 재시도해서는 안 되는 항목 집합입니다.

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

생성 값
DeviceNotAvailableException 기기 복구 중에 발생할 수 있음