Ask a Question

How to run the test case multiple times in SOAPUI?

sreelokesh
Occasional Contributor

How to run the test case multiple times in SOAPUI?

Hi,

 

I have test cases built in SOAPUI for performance testing, currently each test case runs for single time. 

I want to run each test case 3 times in soapui to get the average performance time. Is this possible in SOAPUI?

 

Thanks,

Lokesh

4 REPLIES 4
nmrao
Champion Level 3

Yes, it can be achieved by using load test from your test case itself.

Overview:
https://www.soapui.org/Load-Testing/concept.html

Create load test:
https://www.soapui.org/load-testing/creating-and-running-loadtests.html


Regards,
Rao.

for(i=0;i<100;i++){
	def tCase = testRunner.testCase.testSuite.testCases["Test"]
	def tStep = tCase.testSteps["Request"]
	tStep.run(testRunner, context)
     	Thread.sleep(2000);
}

@plaidshirt ,

 

I think by this time @sreelokesh  would have successfully completed the project 😛

 


Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal

@HimanshuTayal  : I think so also, but maybe somebody comes and grab my solution as a useful thing. Smiley Happy

cancel
Showing results for 
Search instead for 
Did you mean: