Is there anyway to change the iteration count in pre-request script of collection folder? While running the collection everytime, should i choose the iteration count manually?
Hello @davarci, welcome to the community!
You won’t be able to modify the iteration count using the pre-request/test script but what is your use-case?
I can help you with an api inside Postman which is postman.setNextRequest
Going through the doc will help you understand how you can use it.
You can make decisions in the script whether you want to jump to a request and re-do a flow or you can choose to end by passing
postman.setNextRequest as an argument.
Hope this helps you out!
Let me know if you need further assistance around this, please cite your use-case too along with it.