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 affected in the testng
report.
相关问题
- TestNG report with customized error in place of st
- TESTNG: how to send emailable report as an email
- org.testng.TestNGException: sun.security.provider.
- Combining 2 reports into one 1 in (testng) allure
- Debugging TestNG configuration failures
相关文章
- TestNG skipping tests - why?
- How to test a Validator which implements Constrain
- Is it safe to use DateTimeUtils.setCurrentMillisFi
- How to use @FindBy annotation in Selenium WebDrive
- use verify on mocked (with Mockito) objects inject
- How to run TestNG suite with failsafe without unpa
- How to install TestNG eclipse plugin offline?
- TetsNG SoftAssert with Hamcrest matcher
TestNg has one method. You can use this method and run your test case multiple times:
If you don't mind using Sprint, you can create this class:
Then in the actual test:
Where N is the number of times you want the test to repeat.