TestNG DataProvider returning object and RetryAnalyzer does not recognize retry
问题 I've looked everywhere I know and I can't seem to find an answer for this one. If I pass a "complex" object from DataProvider to test method the Invoker seems to get a new instance of RetryAnalyzer with each iteration. IRL, my data provider makes a DB query and passes objects to the test method. I assumed originally the DB access was causing issues, but have since narrowed it down to what I think is simplest example. Please see below. If I set a breakpoint in RetryAnalyzer I can see that