Automatic testing Oracle Service Bus using Jenkins, maven and SoapUI

A lot of current projects are implementing some sort of service based architecture. Testing in this architecture becomes more complex. When implementing an OSB project with Scrum you test-automation is imperative. Scrum will require more frequent testing of your system. This is only feasible (in time and money) when you automate as much as possible.
Using soapUI you are able to create visually SOAP tests on your OSB implementation and running them against the defined infrastructure (develop, test, acceptance).  SoapUI enables with easy tools to implements verification and validation of the responses of your OSB implementation. When running the test you are also able to set limits in SLA response times on all the calls. This way you are able to monitor depreciation of performance in older parts of your OSB implementation when adding new services.
You can record and edit your SOAP test easy with the soapUI interface and edit it later. When you maven-enable your project it is quite easy running your tests when you implement the “maven-soapui-plugin” (see my other posting  In the meantime version 3.0 of this plugin is released.
When implementing this with Jenkins you do not have to convert the results.xml into a Surefire report. Jenkins will manage this for you. Jenkins  will also enable you with an historical overview of all your test results.
Remark that the loadtest does not generate a Junit formatted log. This is only in the paid-version of soapUI.





Connect soapUI to Jenkins

In Jenkins you run the goal clean verify and place a reference to the soapUI result log.  Please note: this option is only available in a Freestyle Jenkins project so you manually have to add maven as a build engine. See screenshot below.



And after running the tests a few times Jenkins will provide you with a nice history graph.



About Author

Robbrecht van Amerongen is Head of IoT at Conclusion. He has a vast experience business development and software delivery. He is able to utilize new technologies and methodologies to valuable products and services for his customers. Keywords: innovation and business development, agile, internet of things, IoT, azure cloud, devops.Robbrecht is also an Agile coach and Certified Agile Master. He has experience in managing Agile projects with Scrum (first with DSDM) ranging back to 1999. Robbrecht is a strong proponent of the agile principles. Robbrecht is agile examiner for the agile foundation, practitioner and master certificate.

Comments are closed.