重试策略
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 和/或其关联公司的注册商标。
最后更新时间 (UTC):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":"其他"
}]