Reputation: 21
Can someone please suggest me how to prepare test scripts for batch test execution using testng... I have around 1000 testcases with different test data iteration...
Also I want to execute failed test cases after complete execution of test suite. Suppose there were 1000 test cases and 200 failed then I want to run that 200 again
Upvotes: 1
Views: 2059
Reputation: 141
You could simply rerun the tests by calling testng-failed.xml http://testng.org/doc/documentation-main.html#rerunning
Or you could implement the IRetryAnalyzer http://seleniumworks.blogspot.co.uk/2013/12/re-run-failed-tests-automatically.html
Upvotes: 6