Forum Discussion

VVardjavand's avatar
VVardjavand
New Contributor
11 years ago

Pause between assertions

Good day,

I was wondering if there is a way to make a pause between assertions. I am trying to make some Rest calls but the JSON is loading only after the assertions are made hence the test fails but the element that I am looking for in the JSON is present so I need to make a pause between them. Is this even possible?

Thank you.

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    If you find yourself wanting to wait, you could split up the request and the assertions into multiple test steps using the Assertion TestStep (http://www.soapui.org/Functional-Testin ... -step.html). First send the request, then create a groovy script TestStep that simply waits a while (Thread.sleep(1000) will make SoapUI wait for one second) and then perform the assertions.

    I hope this helps. Let me know if you have any more question, and I'll gladly assist.

    Regards,
    Arian
    SmartBear Sweden