TestNG: How can I run same test case multiple times?

后端 未结 8 1067
你的背包
你的背包 2020-12-30 20:22

I want to run a test case multiple times. Is that configurable in the testng.xml? If I add a loop in the test method, then the results of each run will not be a

8条回答
  •  孤城傲影
    2020-12-30 20:57

    You can add multiple tests in testngSuite and execute. Under all tests the classes names should be same inorder to execute same script multiple number of times.

提交回复
热议问题