public interface RetryStrategy
Modifier and Type | Method and Description |
---|---|
void |
handleException(String testName,
int attemptIndex,
Throwable throwable)
Handle the exception after the test execution.
|
boolean |
hasNextAttempt()
Return the next attempt should execute or not.
|
void |
stopFollowingAttempts()
Stop the following attempts when test succeed or failed.
|
boolean hasNextAttempt()
void stopFollowingAttempts()
void handleException(String testName, int attemptIndex, Throwable throwable) throws Throwable
testName
- the test nameattemptIndex
- test attempt index that starts from 1throwable
- the throwable that the test case throwsThrowable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.