How can i make a test case repeat X number of times

Hi there,

That’s simple, just add loop statement and call the current test case.

Example:

for (int i = 0 ; i < 5 ; i++)
{
//Execute this test case 5 times
WebUI.callTestCase(findTestCase('Main Test Cases/CurrentTestCase'), [:], FailureHandling.STOP_ON_FAILURE)
}

2 Likes