List /
Cédric,
Did anybody used Retry Analyzer with @Factory ? I am observing a very
strange behaviour while using that. So say I have a factory which
creates 10 instances ( Test #0-#9) of my test class ( each testclass
has just one Retry-Analyzer enabled @Test method ), and say Test#5 is
gonna fail, now I expect Test#5 to be retried n number of time, but
what happens is instead of Test#5, Test#0 gets retried, and as its
passing it marks Test#5 passed. it always retries the first test
irrelevant of what test failed.
I am attaching my sample classes with this email, just in case you guys
want to see the issue yourself.
I tried the same thing with DataProviders, retries works over there
perfectly fine.
Anybody knows some trick to get around this issue ? Should I file a bug
for this ?
Best,
Pranav
P.S : I am on TestNG 5.12.1 , and I did try the same code with 5.8 too
but same results.