cancel
Showing results for 
Search instead for 
Did you mean: 

How to Execute Test Cases parallel

SOLVED
Regular Contributor

How to Execute Test Cases parallel

There is over 100 Test case in the Testsuite, how can it execute all in one go/parallel 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: How to Execute Test Cases parallel

@678,

You asked the question, how to run the tests parallel and it got the answer.

IMO, it should be closed.

Now linking new question. Request you to open a new thread with complete details. Like I pointed earlier, both the test design and server should support parallel execution. Otherwise, things donot work.


Regards,
Rao.

View solution in original post

9 REPLIES 9
Community Hero

Re: How to Execute Test Cases parallel

Hi,

 

According to my knowledge, SoapUI does not support parallel tests execution.

The possible option is to use complimentary LoadUI tool (https://smartbear.com/product/ready-api/loadui/overview/) and create a load test for 100 virtual users each of which will execute one test.

 

Update: As per the followup replies parallel execution is possible. Sorry for incorrect reply.

 

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Community Hero

Re: How to Execute Test Cases parallel

If you double click on TestSuite, there you find an option to run the tests in parallel. Have you checked this page?
www.soapui.org/Functional-Testing/structuring-and-running-tests.html#_ga=2.189836715.1649566062.1549...

By the way, hope the service can handle such load.



Regards,
Rao.
Occasional Contributor

Re: How to Execute Test Cases parallel

use below groovy in Setup Script for your testsuite (use SEQUENTIAL for sequential)

import com.eviware.soapui.model.testsuite.TestSuite.TestSuiteRunType
testSuite.setRunType(TestSuiteRunType.PARALLEL )
log.info testSuite.getRunType()

 

If you want your testsuites to be executed parallel use below groovy in Project->Setup Script

 

project.setRunType(TestSuite.TestSuiteRunType.PARALLEL )

log.info project.getRunType()

 

Community Hero

Re: How to Execute Test Cases parallel

Hey,

 

as @rao said - does the parallel button (set as sequential by default) (available on both project and testsuite level) not suffice?

 

Cheers,

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Community Hero

Re: How to Execute Test Cases parallel

@678,

Hope this is answered and closed. Correct? Got chance to try the solutions provided? Appreciate if you can mark it appropriately.


Regards,
Rao.
Regular Contributor

Re: How to Execute Test Cases parallel

I am running Testsuite using command line 

Regular Contributor

Re: How to Execute Test Cases parallel

when i running this as a testsuite/project level i designed my framework like 1) LibTestsuite 2) Testcasessuite

 

testcases are executing parallel but library test suite is also running parallel so...data is confusing and test cases are failing 

 

Community Hero

Re: How to Execute Test Cases parallel

@678,

You asked the question, how to run the tests parallel and it got the answer.

IMO, it should be closed.

Now linking new question. Request you to open a new thread with complete details. Like I pointed earlier, both the test design and server should support parallel execution. Otherwise, things donot work.


Regards,
Rao.

View solution in original post

Occasional Contributor

Re: How to Execute Test Cases parallel

Correct if I'm wrong.

You want LibTestsuite to execute 1st sequentially then Testcasessuite as parallel.

 

If this is case then you can do:

Set Project RunType as Sequential (LibTestsuite should be present above Testcasessuite)

 

--------Project set as sequential in  Setup Script of project level----

import com.eviware.soapui.model.testsuite.TestSuite.TestSuiteRunType

project.setRunType(TestSuite.TestSuiteRunType.SEQUENTIAL)

 

--------LibTestsuite set as sequential in  Setup Script of LibTestsuite level----

import com.eviware.soapui.model.testsuite.TestSuite.TestSuiteRunType

testSuite.setRunType(TestSuite.TestSuiteRunType.SEQUENTIAL)

 

--------Testcasessuite set as sequential in  Setup Script of Testcasessuite level----

import com.eviware.soapui.model.testsuite.TestSuite.TestSuiteRunType

testSuite.setRunType(TestSuite.TestSuiteRunType.PARALLEL)

 

 

Hope thats what you are looking for.

 

 

Regards,

Vijay

 

 

New Here?
Join us and watch the welcome video:
Top Kudoed Authors