Is there any advantage to using a SOAP interface over a REST guarantee to automate REST services for CI

I need to automate testing the REST API in my project and integrate it into the existing CI in jenkins.

I am going to start coding with REST-assured. However, I happened to see the SOAP UI REST tutorial and understand that there is a maven plugin in the SOAP interface to help jenkins integration. Before I moved forward, I just wanted to find out if there is an obvious advantage to using the SOAP interface over Rest-sure. I have to complete the automation of about 30 requests with complex JSON responses in about a month - including checking the schema for the responses.

+2
source share
2 answers

I did not use REST-assured , but I had a quick look and I see this java DSL for testing rest services. Given that he does what he says, this is my answer ...

I used the SOAP interface to test web services. As a rule, the SOAP user interface was very good for manual testing, but it was difficult for me to perform automatic testing.

The main reason was that many file paths are tightly bound to SOAP interface projects, so a project related to c:\development\myproject\wsdl\myservice.wsdl will suddenly not work on another developer's machine in /dev/myproject/wsdl/myservice.wsdl .

I also found that I could not efficiently edit SOAP UI projects in intellij, because I was constantly alt tabbing.

Yes, the soap ui maven plugin really worked, but I found it cumbersome.

Please note that I did not use SOAP UI REST, just a β€œnormal” SOAP UI, but if your use case is for automatic testing only and the REST-assured structure does what it says, I would certainly recommend using DSL .

+2
source

Given your current use case, the easiest of 2 will be to use self-confident (+ indicates java dsl; the readability of the bonus is for testing, but you can always use other clients if you want). Given that you intend to automate your test and integrate it into CI, you can simply create a module that launches your test package at this phase and collects the results.

PS: I am currently using jbehave + rest-sure

+2
source

All Articles