Ask a Question

SoapUI Existing Code Modularization

SOLVED
SumitM
Occasional Contributor

SoapUI Existing Code Modularization

HI All,

 

Can anyone from here suggest me how to approach modularization in SoapUI Pro legacy code.

I am trying to achieve modularization using groovy scripting but coming up short and ending up with manually setting the parameters

1 ACCEPTED SOLUTION

Accepted Solutions
Radford
Super Contributor

Re: SoapUI Existing Code Modularization

Like @Lucian I also try to create a set of "common library" test cases, and then make extensive use of the Run TestCase Test Step. Here are a couple of posts where I talk about it in a bit more detail:

 

https://community.smartbear.com/t5/SoapUI-Pro/Need-help-to-modularizing-tests-using-soapui-pro/m-p/1...

 

https://community.smartbear.com/t5/SoapUI-Pro/How-to-loop-Test-Suites-or-Test-Cases/m-p/144035

 

Hopefully this will go together with @Lucian post.

View solution in original post

7 REPLIES 7
Lucian
Community Hero

Re: SoapUI Existing Code Modularization

Hey,

 

Sorry but what does modularization mean in this context?



If my answer helped please click on the 'Accept as Solution' button.
jhanzeb1
Frequent Contributor

Re: SoapUI Existing Code Modularization

Yeah, I wondered exact the same. 

 

 

Could you please ask questions with as much detail as possible please?

SumitM
Occasional Contributor

Re: SoapUI Existing Code Modularization

Hi,

Actually my issue is, I have inherited some legacy SoapUI code for a product. Now my new client want to break the complex legacy code into smaller modules so that offshore team can run the QA test in a less complex manner.

I have identified some areas in the code which can be grouped together as a module. But i have no idea how to approach coding for it to happen. 

In the above mentioned legacy code there are over 60 test suits with some repeatable test steps in several of them. Is there any way I can take out the common steps and make some kind of library file to make the test steps less complex.

Lucian
Community Hero

Re: SoapUI Existing Code Modularization

If by SoapUI code you mean SoapUI tests then yes, you can refactor the tests and use libraries. I just wrote an article about this here.



If my answer helped please click on the 'Accept as Solution' button.
jhanzeb1
Frequent Contributor

Re: SoapUI Existing Code Modularization

Yes, you can. As L mentioned, you can use a script library with soapui so you don't have to repeat the same scripts elsewhere. 

 

You will have to save class files somewhere in your folder and call them from SoapUI. Then you can just call specific methods from your groovy scripts. 

 

Checkout the page below to walk you through this.

 

https://www.soapui.org/scripting-properties/scripting-and-the-script-library.html

Radford
Super Contributor

Re: SoapUI Existing Code Modularization

Like @Lucian I also try to create a set of "common library" test cases, and then make extensive use of the Run TestCase Test Step. Here are a couple of posts where I talk about it in a bit more detail:

 

https://community.smartbear.com/t5/SoapUI-Pro/Need-help-to-modularizing-tests-using-soapui-pro/m-p/1...

 

https://community.smartbear.com/t5/SoapUI-Pro/How-to-loop-Test-Suites-or-Test-Cases/m-p/144035

 

Hopefully this will go together with @Lucian post.

View solution in original post

Olga_T
Moderator

Re: SoapUI Existing Code Modularization

Hi all,

 

What a great team! Thanks everyone for your contribution.

 

@SumitM, if your question is answered, could you please click the Accept as Solution button below the reply that answers it best? This way, other users will find the solution faster if they face some similar issue.

 

Thank you in advance!

 


Olga Terentieva
SmartBear Assistant Community Manager

cancel
Showing results for 
Search instead for 
Did you mean: