Hi,
I need some help with the below scenario.
I have 10 different test cases that has the end-to-end flow. Each test case fetches data from different excel sheet page. I am calling all the 10 test cases in one test case (main).
Now I want to iterate the main test case that calls all the 10 test cases so the flow doesn’t break.
When i try to give a for loop in the main test case, the test case fails
for(int i = 0; i < 10; i++) {
WebUI.callTestCase(findTestCase(‘Test Cases/TestCase Division/Account -TC’), [:], FailureHandling.STOP_ON_FAILURE)
WebUI.callTestCase(findTestCase(‘Test Cases/TestCase Division/Contact’), [:], FailureHandling.STOP_ON_FAILURE)
}
When I try to give the same for loop in each individual 10 test cases, each test case repeats itself multiple times. Please help me get a solution for this.
Also in the test step on 1st test case (Account - TC ), do I need to update row to “i” instead of 1 if I give for loop in main test case ?
Eg:
WebUI.setText(findTestObject(‘Account/Account Edit Page/Account Name’), excelData.getValue(‘Account Name’, 1))