重試策略
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
重新運行所有測試,直到達到最大計數或發生故障,以先到者為準。
RETRY_ANY_FAILURE
public static final RetryStrategy RETRY_ANY_FAILURE
重新運行所有測試運行和測試用例失敗,直到通過或指定的最大嘗試次數。測試運行失敗優先重新運行(也就是如果運行失敗和測試用例失敗發生,運行失敗重新運行)。
公共方法
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-04-28 (世界標準時間)。
[{
"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":"其他"
}]