cancel
Showing results for 
Search instead for 
Did you mean: 

SoapUI in a CI,CD pipeline environment

Highlighted
Contributor

SoapUI in a CI,CD pipeline environment

Hello,

We all know how critical it is to have Continuous Integration(CI), Continuous Delivery(CD) approaches in today's agile world of software development process and deliveries.

Has any one experienced in using either SoapUI/ Ready API  tools for testing service layer of your software or the API endpoints in this CI/CD pipeline approach ?

 

By CI/CD pipeline I meant the following:

  1. Developer commits the code in to the src repo
  2. The Dev commit triggers making a new build with the latest changes
  3. The build gets deployed to a test environment
  4. Now I want my SoapUI/ Ready API test suites to get triggered and test the apis
  5. All these has to be an automated ones.

What I am experienced in using SoapUI:

  1. I have designed my api end points tests with SoapUI free version and made test suites out of it
  2. I have a Jenkins server running ( which is completely in isolation to the dev CI too which is Bamboo and runs in amazon elastic agents )
  3. In this Jenkins , I have job dedicated for testing APIs, where  I use SoapUI maven plugin to which I pass the test suite designed in SoapUI.
  4. Maven runs the SoapUI tests 
  5. The SoapUI controller need to be installed in the machine where this test is happening.So it works very well.
  6. This works ok for scheduling the tests and manually triggering the test etc from Jenkins.

 

But I am looking for options to make these tests as part of CI pipeline, especially

  1. When my CI process is happening with amazone elastic agents ( with Bamboo CI Tool )
  2. Does it will have capability to run SoapUI tests ? We need to have SoapUI controller to be available in any machine where the tests are happening... 
  3. Has any one come across this ?
  4. Is there any easy way for this with the paid version of SoapUI, Ready api ?

 

Thanks & Warm Regards

Musaffir

 

 

 

 

 

 

 

 

 

6 REPLIES

Re: SoapUI in a CI,CD pipeline environment

Hello,

 

SoapUI has command line parameters that will allow you to run test outside of the Soapui tool and without having to use the maven plugin. The commandline parameters will allow you to do things like select Projects/testsuite/testcase to execute and the pro version has some extra features to export reports, run specific tests that are tagged, use same tests in different environments. Please take a look at the list of things that you can apply from the commandline so that you can drive the tests from your CI tools (bamboo,jenkins, etc) More information about the commandline parameters are available here: https://support.smartbear.com/readyapi/docs/soapui/running/automating/cli.html (this is for the pro version, some parameters may not apply for OS)

Contributor

Re: SoapUI in a CI,CD pipeline environment

Hello @TSanchez_1

 

Thank you for the response.

I would assume CommnadLine option works exactly in similar way as the maven plugin, and you would need to have the SoapUI controller installed on the machine where the test is running 

Basically the SoapUI or ReadyAPI controller would the one who executing all the tests ?

 

The problem with my eco system is , the CI and CD is happening with bamboo and everything happens on cloud machine (amazone elastic agents) where we are not sure of we can have SoapUI controller capability.... I think in that case it is going to be difficult.... If the CI and CD is happening in machines which if we have control over, this would be much easier I guess and I could run tests either with CommandLine or Maven ..and not necessarily with SoapUI GUI tool itself...

 

Am looking If any one has come across a similar situation

 

Thanks & Warm Regards

Musaffir

Community Hero

Re: SoapUI in a CI,CD pipeline environment

Personally do not use.
Please see if the below thread helps?
https://marketplace.atlassian.com/apps/1215341/soapui-for-bamboo?hosting=server&tab=overview

Not sure what you mean by SoapUI controller? You mean running the tests?

SoapUI or ReadyAPI should be installed on the machine where tests are going to be executed. And your application / service need not be on the same machine, it could be remote machine; the tests be run.
Contributor

Re: SoapUI in a CI,CD pipeline environment

Hello @nmrao  Thank you

 

By SoapUI controller, I meant the SoapUI software or the application itself...yes the one which need to be installed on the machine where we want to run test and want to hit on the apis..

 

Sure, I will check that thread and see if its helps... If we are sure about the system where the tests are running and if we have control over the system we could install SoapUI there..( yes application / service is deployed some where which can be accessed over http) ... but with Bamboo CI setup that we have currently ... this is not in my control .... but something I will research to see what is possible with any workarounds...

Thanks again for your response

 

Warm Regards

Musaffir

Contributor

Re: SoapUI in a CI,CD pipeline environment

Hi @nmrao

 

I checked that thread and the SoapUI plugin for Bamboo

I think its just a plugin where you can configure all your things like project file,suite etc for the bamboo tasks ?attached a pic

Ultimately we will have to point to the SoapUI installation path ? So SoapUI need to be installed on the agent where this test is running ?

As I am not sure in which agent the test would be running , it will difficult for me as the SoapUI installation may not be there in that agent ?

Or If I have many standalone agents, I will need to have that many SoapUI installation or licence there ?

 

 

Thanks

Musaffir 

Contributor

Re: SoapUI in a CI,CD pipeline environment

I believe this should be possible , if the bamboo agents are some thing with in my control , something like on-premise agents where I can have SoapUI/ReadyAPI installed, so i can trigger tests and those can be hit by SoapUI.

 

So if I have 10 agents..and If I use ReadyAPI for this, I would need 10 ready api licence I believe Smiley Tongue 

Congratulate last week's winners here:
1. @Lucian - $50
2. @Sanj - $35
3. @aaronpliu - $15

To do this week:
- Ask product-related questions
- Reply to any questions

Win $50, $35 or $15 gift card!
It's a last week of API Summer!

Top Kudoed Authors
Are You In?

Meet the Community Leaders!

SmartBear Connect is an excellent opportunity for training, in-person support, and networking.

GET YOUR TICKET WITH $100 OFF