Forum Discussion

wjs2634's avatar
wjs2634
New Contributor
7 years ago

How to add delay (request interval ) after each REST request?

How to add delay (request interval )  after each REST request?

I want soapui Pro to delay for some ms between each REST request? Is there anyway to config an interval time?

  • Olga_T's avatar
    Olga_T
    7 years ago

    Hi,

     

    Thanks for your assistance, guys!

     

    wjs2634 did the suggestions above help you solve the issue? 

     

  • Add a Script assertion and write :

     

    thread.sleep(1000)

     

    Here 1000 is milisecond, so 1000 mean 1 second.

     

    Click "Accept as Solution" if my answer has helped, and remember to give "kudos" :)

     

    Thanks and Regards,

    Himanshu Tayal

    • Olga_T's avatar
      Olga_T
      SmartBear Alumni (Retired)

      Hi,

       

      Thanks for your assistance, guys!

       

      wjs2634 did the suggestions above help you solve the issue? 

       

  • Lucian's avatar
    Lucian
    Community Hero

    There is a delay test step available in ReadyApi. Does that not work for you?

     

    btw the delay value is in milliseconds (so for instance 5000 would mean 5 seconds)...