重試策略
public final enum RetryStrategy
extends Enum< RetryStrategy >
java.lang.Object | ||
↳ | java.lang.Enum< com.android.tradefed.retry.RetryStrategy > | |
↳ | com.android.tradefed.retry.RetryStrategy |
重新執行某些測試時要使用的重試策略。
概括
列舉值 | |
---|---|
RetryStrategy | ITERATIONS 重新執行所有測試指定的嘗試次數。 |
RetryStrategy | NO_RETRY 不要嘗試任何重試 |
RetryStrategy | RERUN_UNTIL_FAILURE 重新執行所有測試,直到達到最大計數或發生故障(以先發生者為準)。 |
RetryStrategy | RETRY_ANY_FAILURE 重新執行所有測試運行和失敗的測試案例,直到通過或達到指定的最大嘗試次數。 |
公共方法 | |
---|---|
static RetryStrategy | valueOf (String name) |
static final RetryStrategy[] | values () |
列舉值
RERUN_UNTIL_FAILURE
public static final RetryStrategy RERUN_UNTIL_FAILURE
重新執行所有測試,直到達到最大計數或發生故障(以先發生者為準)。
重試任何失敗
public static final RetryStrategy RETRY_ANY_FAILURE
重新執行所有測試運行和失敗的測試案例,直到通過或達到指定的最大嘗試次數。測試運行失敗將優先重新運行(即如果發生運行失敗和測試案例失敗,則重新運行運行失敗)。
公共方法
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]