IAutoRetriableTest
public
interface
IAutoRetriableTest
implements
IRemoteTest
| com.android.tradefed.testtype.retry.IAutoRetriableTest |
不實作 ITestFilterReceiver 但仍希望支援自動重試的 IRemoteTest 介面。
建議大多數執行程式實作 ITestFilterReceiver,並精細控管要執行哪些測試,以便套件處理。但在某些情況下,這可能無法實現,因此需要使用某種委派形式的重試。
摘要
公用方法 | |
|---|---|
default
boolean
|
shouldRetry(int attemptJustExecuted,
|
公用方法
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 |
可在裝置復原期間擲回 |