I have a postman request in the below order
- GET Request
- GET Request
- POST Request
- POST Request <<<
- POST Request <<< Need to repeat only 4,5,6 - 10 times
- POST Request <<<
POST request 4 , 5 and 6 needs to repeated (say 10 times)
I tried copy of Request like below....
- GET Request
- GET Request
- POST Request
- POST Request
- POST Request
- POST Request
- POST Request 4 - Copy <<<
- POST Request 5 - Copy <<< i made a copy of 4, 5 , 6 :(
- POST Request 6 - Copy <<<
Is there a better way than copy ?
postman.setNextRequest("request_name")
should be helping your case.Note: This will help only when you run the collection using postman runner and the name of the requests in the collection has to be unique.
in your case, rename the requests in your collection like
and place the below code in the test tab of the
POST Request 6