Forum Discussion

SumitM's avatar
SumitM
Occasional Contributor
6 years ago
Solved

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

7 Replies

  • Lucian's avatar
    Lucian
    Community Hero

    Hey,

     

    Sorry but what does modularization mean in this context?

    • jhanzeb1's avatar
      jhanzeb1
      Frequent Contributor

      Yeah, I wondered exact the same. 

       

       

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

      • SumitM's avatar
        SumitM
        Occasional Contributor

        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.

  • Radford's avatar
    Radford
    Super Contributor

    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/163004

     

    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.

    • Olga_T's avatar
      Olga_T
      SmartBear Alumni (Retired)

      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!