MCPcopy Create free account
hub / github.com/TestLeafInc/Simba / RetryTests

Class RetryTests

src/main/java/com/force/utility/RetryTests.java:14–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12import com.force.config.ConfigurationManager;
13
14public class RetryTests extends ProjectHooks implements IRetryAnalyzer, IAnnotationTransformer{
15
16 int retryCount = 0;
17
18 @Override
19 public boolean retry(ITestResult result) {
20 if(retryCount < ConfigurationManager.configuration().maxRetry()) {
21 retryCount++;
22 return true;
23 }
24 return false;
25 }
26
27 @SuppressWarnings("rawtypes")
28 @Override
29 public void transform(ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod) {
30 annotation.setRetryAnalyzer(this.getClass());
31 }
32
33
34
35
36
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected