Hello Postman team,
We are using Postman to automate a broad number of requests. Sometimes we need to query an API programmatically, wait for its response, process it, and then proceed depending on what we have received. Most of the time these types of checks and requests are best made programmatically and do not warrant another request to be made in the collection as it is to be considered a dummy request and right now we have a lot of them for other reasons, so adding more is not an option as our collection would become bloated with dummy requests. Having said that, the async pm.sendRequest() isn’t cutting it in that case.
Is there a limitation as to why there’s still no possibility to send sync requests from scripts? I mean, before exiting Postman’s requests still have to wait for the pm.sendRequest() to finish anyway so we are blocked during its execution, still, we are limited by the async pm.sendRequest() working, well … async, so it is useless when we want a strict flow of execution in the scripts.
Thanks for your time in reading this. I’m looking forward to your reply.
PS: If I’ve missed something out, please forgive me. Advises would be much welcomed!