How to Execute Test Cases parallel
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to Execute Test Cases parallel
There is over 100 Test case in the Testsuite, how can it execute all in one go/parallel
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
/Alex [Community Hero]
____
[Community Heroes] 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. Posts made by [Community Heroes]
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.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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()
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
as @rao said - does the parallel button (set as sequential by default) (available on both project and testsuite level) not suffice?
Cheers,
richie
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hope this is answered and closed. Correct? Got chance to try the solutions provided? Appreciate if you can mark it appropriately.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am running Testsuite using command line
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
