自動重試測試

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設備恢復期間可能會拋出