mercredi 9 octobre 2019

TestNG - How can I re-run failed tests after the complete of the suite

How can I re-run failed tests after the completion of the suite in TestNG. Using RetryAnalyzer I can re-run the failed test cases immediately after the failed test case but not after suite completion.

The reason why I require this: My test cases run in parallel on 20+ threads, some of my test-systems misbehave on this load so retrying immediatly after doesn't help much.

But we retry the failed test cases by re-running the testNG-failed.xml, these cases are passed. Currently, we are re-running the testNG-failed.xml but it creates 2 reports and many other problems for us. Can we achieve the similar functionality without re-running the testNG-failed.xml, through RetryAnalyzer or any other way in testNG?

Aucun commentaire:

Enregistrer un commentaire