Executing test case loop multiple times
Hi, I'm new for ReadyAPI and I need to solve a problem.
I have a loop for request with reading data from Excel file using Data Source and Data Source Loop steps. It looks like on the picture below:
What I need is to run the whole loop configurable number of times.
For example in the Data Source Excel there are four rows with data that are put in the Request. So the Request will be sent four times, each time with different data. And I want to execute this loop (four requests inside) for example for 20 times.
Hi,
A simple, but might not be the best, is an 'outer' data source loop.
Create a new Excel spreadsheet with a 'iteration' column with four rows. E.g. 1,2,3,4. This is your "configurable number of times loop".
Before your original Data Source step, create a new Data Source Step called something like 'Outer loop', that links to the new spreadsheet.
Finally, create a new Data Source loop that links back to the new 'outer' data source.