What is the command being used to run this and are there any scripts at the Collection/Folder/Request level that contain either the skipRequest or setNetRequest command?
I don’t quite understand you do or don’t use the setNetRequest function ? Is there logic wrapped around that if you use it in the requests.
No. On Collection/Folder level I’ve not used these functions skipRequest or setNetRequest. In some requests I’ve used these functions intentionally.
Can you share the actual code snippet?
You need to share a lot more granular information about each aspect of the Collection. If you removed the --folder flag from the command or remove any references to setNetRequest() it would just run the full collection from top to bottom as you see it in the sidebar on the Postman UI.
The only way that order changes or it misses out requests, is if you have something in there telling it to do that.
I’m aware of the execution flow. And in regards to the setNextRequest() function, I have used it in some of the requests in Post-Response section. Posting screenshot for reference:
Will adding these functions in any of the request impact other folder not to get executed while running the collection through CLI? Strange thing is this issue doesn’t happens during every execution.
I just ran one of those sub folders from API Tests folder which were not getting executed individually through CLI and all the request from that folder got executed successfully.
@danny-dainton I got the issue. There were two requests with the same title.
I was using setNextRequest function in post-response section to re-execute the same request if validation was not done according to the expection. Little did I know that Postman will execute the request from some other folder with the same title which was letting all the requests b/w these two requests with same title not to get executed.
Thought of letting you know so that concerned team won’t spend time in investigating what I reported.