Search code examples
postmanpostman-testcase

How can we add sleep time in postman test?


I am getting very big response(50k lines). I am getting 200 status and my test code written in Test tab starts getting executed before whole response loaded in postman.

In other words I and to add delay between success response and test starts.


Solution

  • You can wait until get response by setting the request timeout is zero. It means infinity waiting.

    unit is milli seconds.

    enter image description here

    You can find it from gear the menu of Postman

    enter image description here

    You can make timeout error with this URL by 10 msec

    https://raw.githubusercontent.com/json-iterator/test-data/master/large-file.json
    

    In case of 10 msec,

    enter image description here

    enter image description here

    In case of 0 msec,

    enter image description here

    enter image description here