/* 1. create a global variable called iterationNumber with value as 0. This would be incremented after every request executes.
2. create one dummy request called driver with below code in test tab
if pm.global.get(iterationNumber)=0 {
pm.sendnextrequest(Testcase 1)}
if pm.global.get(iterationNumber)=1 {
pm.sendnextrequest(Testcase 2)}
if pm.global.get(iterationNumber)=2{
pm.sendnextrequest(Testcase 3)}
- Create a dummy request called End with code as
pm.sendnextrequest(Driver)
3.In Test case 1 ,at the end of test write code as
pm.global.set(iterationNumber,1)
pm.sendnextrequest(End)
4.In Test case 2 ,at the end of test write code as
pm.global.set(iterationNumber,2)
pm.sendnextrequest(End)
5.In Test case 3 ,at the end of test write code as
pm.global.set(iterationNumber,3)
pm.sendnextrequest(End)
Keep a excel (csv) file with test 1,2 and 3 in separate rows and load in runner with 3 iterations and run the collection. The runner will start with driver script, go to first test case and fetch data with first excel row, then the control would return to end test case and then to driver again and iteration 2 would start , test case 2 would get executed with data from row 2 in excel and likewise. */