Forum Discussion

zainuluk's avatar
zainuluk
New Contributor
16 years ago

Looping testcase with groovy

Hi All,
I am using SoapUI version 2.5 beta. I want to write a groovy script which I want to use to start a testsuite which contains various testcases. However, Unlike the gui version which allows you to select the loop option so the test cases run in a .... loop? How do I make the testcases in a suite loop repeatedly.

Update: I have managed to start the testcase however it does not loop. Is there a method to call which will allow me to set loop.

Thankyou.

2 Replies

  • Hi,

    Create a new 'testrunner' object & call the 'run' method of this object. TestRunner constructor needs to be passed with a WSDL test type & null arguments.
    I shall be pressing a quick blog on this in a week or so.

    Best Regards,
    /Pradeep Bishnoi
    http://learnsoapui.wordpress.com