public class RetryOnExceptionStrategy extends AbstractRetryStrategy
hasNextAttempt, totalTimes| 构造器和说明 |
|---|
RetryOnExceptionStrategy(int retryTimes,
Class<? extends Throwable> repeatableException) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handleException(String testName,
int attemptIndex,
Throwable throwable)
Handle the exception after the test execution.
|
hasNextAttempt, stopFollowingAttemptspublic void handleException(String testName, int attemptIndex, Throwable throwable) throws Throwable
RetryStrategytestName - the test nameattemptIndex - test attempt index that starts from 1throwable - the throwable that the test case throwsThrowableCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.