I currently have a collection that loops through an array of URLs and runs the necessary requests on those URLs (using postman.setNextRequest) until that array is empty. It works okay for what I need, but it’s complicated to keep track of the logic flow so I’d like to simplify this logic further.
Is it possible to just have a script that doesn’t make a request and only loops through this URL list calling each request as needed? I thought I would be clever and do this using “Pre-request Script” for the collection but then I found out that it runs before EVERY request which isn’t what I want. I want it to run once and inside there handle the variables and call each request manually. I can’t find a simple way to do this from within Postman but I feel like it should be doable somehow?