How to add a pause between 2 requests in POSTMAN

RoundOutTooSoon picture RoundOutTooSoon · Nov 8, 2016 · Viewed 52.7k times · Source

I have a collection of requests in POSTMAN. I wanted to add a pause between 2 requests but I couldn't find a way to do so from reading their docs. Any idea?

UPDATE I only wanted to put a pause after one request instead of after every request in the collection.

Answer

Ivo picture Ivo · Aug 20, 2018

In case someone is still looking for this - You can add delay after/before 1 of many test in a collection you can use:

setTimeout(function(){}, [number]);

where 'number' is the milliseconds. If it's added at 'Tests' it will be executed after request is send. If it's added at 'pre-request tests' it will be executed before request is send.