Ask a Question

How to run next test step/case while previous one is still running in SoapUI Pro?

SOLVED
hafizimraan
Occasional Contributor

How to run next test step/case while previous one is still running in SoapUI Pro?

Hi Community Members

Under one test suite I have multiple test cases i.e.1 to 10. Upon running of test suite Soapui does have option to run in parallel/serial but my scenario requires to run test suite in serial mode and then the real problems comes that it is required in my scenario to run test case 3 while test case 2 is still in running state. But so far am unable get the solution because in test suite while running in serial its waits to complete the execution of step 2 then moves to step 3. So is there any way that I just trigger the test case 2 using script etc & test suite proceeds to next step instead of waiting of response (Step 2).

 

Let me know if you guys have any ambiguity regarding above problem statement.

Regards  

 

13 REPLIES 13
hafizimraan
Occasional Contributor

@nmrao 
let me try this approach as suggested above. Am already trying each approach at test step level as we as on test case level.
@HimanshuTayal Am using Groovy Script.

One more question regarding reply to post: In Morning i replied to @nmrao but now that reply isn't appearing. can u put some light on it whats wrong?  

If it is only one step, let it do using step (Use test case if there is a need)
Yes, you try exactly as specified. If you understand as you read the code, it starts both the steps in two different threads and the groovy script waits till both steps are completed. So assuming that which is what you need.

Regarding your other point, that is related to community site; not members hands.


Regards,
Rao.
hafizimraan
Occasional Contributor

Got the solution by adding following code under groovy step.

Thread.start {
	testRunner.runTestStepByName("Test Step 1")
}
testRunner.runTestStepByName("Test Step 2")

What does this code do: 
Thread.start will run Test Step 1 & will move to Test Step 2 without waiting for the result/response of Test Step 1.
@nmrao @HimanshuTayal  Thanks Guys for your help. Really appreciated.

 

Nice. But, there is nothing new than the approach and script provided to you.


Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: