I have a TestNG test suite that is working fine except for one thing: I cannot run the same test twice. The reason I want to run a test twice is that I am testing web servic
Solving the problem of code duplication in TestNG test I could find only this solution:
Create a rootsuite.xml file like:
Important! You can not include duplicated suite-files inside Test1.xml, Test2.xml, Test3.xml, Test4.xml - all duplicated suites will be ignored.
Note the version of TestNG must be at least 6.9.9
org.testng
testng
6.9.9
test