Closed rajivnw closed 4 years ago
TestNG is working as designed. org.testng.IRetryAnalyzer
doesn't extend org.testng.ITestNGListener
and so its not a listener. So its implementation cannot be wired into TestNG via the <listener>
tag.
You can either use it via the retryAnalyzer
attribute of the @Test
annotation or make use of an org.testng.IAnnotationTransformer
implementation to add the retry analyser in runtime, and wire in the custom annotation transformer via the <listener>
tag
TestNG Version 7.0.0
IRetryAnalyzer implementation
Register a listener in testng.xml
getting below error in eclipse -:
If I remove the listner from testng same work.