Ask a Question

Customising parallel runs

SOLVED
kannan
Occasional Contributor

Customising parallel runs

Hi Team ,

We are trying to figure out a way to run our test cases in a customised  parallel fashion . 

 

To start with , we are using readyAPI paid version 3.2.5.

 

Our Project structure is 

1.TestSuite1
     1.1 TestSuite1_Positive  >  100 cases
     1.2 TestSuite1_Negative > 20 cases

 

2. TestSuite2
     2.1 TestSuite2_Positive.  > 50 cases 
     2.2 TestSuite2_Negative  > 30 cases

 

3. TestSuite3
     3.1 TestSuite3_Positive  > 50 cases 

 

4. TestSuite4
    4.1 TestSuite4_positive. > 10 cases

test Suite 2 is dependent on TestSuite1 and it should run only after TestSuite1 is completed.

TestSuite 4 is dependent on TestSuite3 and it should run only after TestSuite3 is completed

TestSuite1 and TestSuite3 are independent and can run in parallel and TestSuite2 and TestSuite4 can run in parallel.

 

What we are trying to achieve here to once we start our run , TestSuite1 and TestSuite3 should run in parallel.
Once TestSuite1 complete its run TestSuite2 should start , similar for TestSuite3 and TestSuite4.

 

Kindly help .

1 ACCEPTED SOLUTION

Accepted Solutions
nmrao
Community Hero

Re: Customising parallel runs

1. the suggestion was based on the information provided in the question.
2. thumb rule is to have each and every test case is independent, here you have dependency between suites.
Can you revisit the suites and see if you can make them independent (no dependency between them)?

By the way, if you use the commandline testrunner script to execute the project, then you have the flexibility to run particular test suite (you can also check if that option allows to run two suites if you can;t remove dependency) and use multiple command line terminals or write a batch script to invoke each suite in the background process. This way you can achieve parallel running of suites without splitting the project as well.


Regards,
Rao.

View solution in original post

4 REPLIES 4
nmrao
Community Hero

Re: Customising parallel runs

To make it simple, split the project appropriately so that two projects can be run from command line parallel.


Regards,
Rao.
kannan
Occasional Contributor

Re: Customising parallel runs

 Thanks for the suggestion . But we have total 37K test cases Split across 18 Projects based on functionalities  . Each projects has around ~40 test suites. So splitting again is not an option for us . 

richie
Community Hero

Re: Customising parallel runs

Ok, need to apologise as this is nothing to do with readyapi!/soapui, but @nmrao.... youre back!😁

Havent seen you on here for ages and ive missed all your coding advice, hope its all good with you!

Rich
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 Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
nmrao
Community Hero

Re: Customising parallel runs

1. the suggestion was based on the information provided in the question.
2. thumb rule is to have each and every test case is independent, here you have dependency between suites.
Can you revisit the suites and see if you can make them independent (no dependency between them)?

By the way, if you use the commandline testrunner script to execute the project, then you have the flexibility to run particular test suite (you can also check if that option allows to run two suites if you can;t remove dependency) and use multiple command line terminals or write a batch script to invoke each suite in the background process. This way you can achieve parallel running of suites without splitting the project as well.


Regards,
Rao.

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: