Forum Discussion

etcShuko's avatar
etcShuko
Occasional Contributor
11 years ago

Run Test Case Step

Hello ..!

I have been use LoadUI (2.6.6) pro and SoapUI pro (4.6.3).I build web test case.
For example :
--> Login
--> Property Transfer
--> Query
I can run the web test case but ı want to Login&Property Transfer(1) run once and Query(100) .How can I edit my test case ?

Thanks.
See you.

1 Reply

  • PaulDonny's avatar
    PaulDonny
    Regular Contributor
    Loop with a groovy script

    for (int i = 0; i < 2; i++ ){
    testRunner.runTestStepByName("Test Request");
    log.info testRunner.testCase.getTestStepByName("Test Request").getPropertyValue("Response");
    }


    Instead of log.info I would run some verification scripts and then store it. To do it 100 times, change the 2 to 100.


    Warning: DO NOT TOUCH THE CODE WHILE IT IS RUNNING. IT WILL LOCK YOUR SOAPUI