IAutoRetriable테스트

public interface IAutoRetriableTest
implements IRemoteTest

com.android.tradefed.testtype.retry.IAutoRetriableTest


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

대부분의 러너에게 권장되는 사항은 ITestFilterReceiver 구현하고 하네스에서 처리할 테스트를 세부적으로 제어하는 ​​것입니다. 그러나 어떤 상황에서는 이것이 불가능할 수도 있으며 위임된 형태의 재시도가 필요할 수도 있습니다.

요약

공개 메소드

default boolean shouldRetry (int attemptJustExecuted, previousResults, skipList) shouldRetry (int attemptJustExecuted, previousResults, skipList) 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)) .

공개 메소드

다시 시도해야 함

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 장치 복구 중에 던져질 수 있음