IAutoRetriableTest

public interface IAutoRetriableTest
implements IRemoteTest

com.android.tradefed.testtype.retry.IAutoRetriableTest


IRemoteTest 的接口,未实现 ITestFilterReceiver,但仍 希望支持自动重试。

对于大多数运行程序,建议实现 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))

公共方法

应重试

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 可能会在设备恢复期间抛出