Collection Runner runs tests multiple times incorrectly

My postman collection only has about 30 requests in it, and previously when I used the postman runner, it would run each request once, and complete the run.

However, this morning for some reason the test runner will run the requests hundreds of times, until I stop the runner manually.

I’ve not made any changes as far as I’m aware, and I’ve set the iterations to be only 1 iteration?

does anyone have any idea why it would do this? It seems to be running the collection on a loop and ignoring the iterations count.

Without seeing the collection, this will be difficult to troubleshoot.

Are you running this with a data file, or just running the Collection?

If its looping, I would suggest finding the last request before it starts looping again, and check the tests tab for setNextRequest() as that is the main way to control loops.

Have a look at the change log for the collection (to double check that no one has made any recent changes).

1 Like

Thanks mike!

You solved it. It was the setNextRequest(). This is something I’ve only just learned about and used it and forget I’d used them.

I’d set it for a few requests, and cloned those request for a different test, and didn’t update the request IDs, and It seemed to create an infinite loop. I’ve updated them and it seems to have solved the problem.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.