Forum Discussion

go2khurram's avatar
go2khurram
Contributor
9 years ago

Conditional and Variable Delay

Hi, 

 

Wondering that some experience and inteletual minds could help me on this. I am new to SoapUI and using free version  

 

I am writtng a test where I can accorss in a situation to invoke a Soap request which insert this record into a database table (let's call  Table A).  So I am doing this using Soap request step.

 

There is some sort of message brocker which process this record in table A and after processing,  another entry made  into Table B. 

 

I have to call another WS method to validate the response. Currentely I put the normal outof the box delay step and put some delay, but the time our system take to process the first record and insert the entry to table B is variant., some time it take 30 sec and some time mora than 3 minutes,

 

Can I put some kind of conditional and variable delay in which I could keep looking into Table B for a certain record and once available move to the next step other keep looking for a certain time and then fail the step if not found for defined period.

 

If this could possiblle using groovy plz help.

 

Regards,