In TestNG >=7.4.0 the retry analyzer is no longer accessible via the ITestAnnotation. For example, the following code no longer works ("getRetryAnalyzer" method has been removed):
RetryAnalyzer retryAnalyzer = (RetryAnalyzer)annotation.getRetryAnalyzer();
retryAnalyzer.setMaxCount(5);
Is there a new strategy that can be used in order to access it within the transform method of the IAnnotationTransformer interface? I am currently modifying the retry count based on groups within the @Test annotation.
Thank you.