Ken1
1
I know how to loop within a single test case, but is there a way to loop multiple test cases within a test suite?
Example:
Test suite
Testcase1
for (def i = 1; i <= 2; i++){
Testcase2
Testcase3
}
Testcase4
Or can you only loop within a single test case?
You could write a new TestCase that “contains” the loop and calls Testcase2 and Testcase3
Ken1
3
Thank you for the response, when I do that I can’t bind data to the test cases being called within the test case. Is there a way to do that?
I’m with you @Ken1, it would be very useful to be able to to loop through a test suite before the next row of test data is used. This would:
- Support reuse of test cases in differing sequences to build end-to-end scenarios
- Reduce maintenance overheads after UI changes (modify 1 test to fix many scenarios)
- Make data driven testing with test suites more versatile and powerful
Perhaps Katalon could offer options for test suites along the lines of - Read the next row of the data file
- Before the next test case in the test suite (test looping)
- After last test case in the test suite only (suite looping)