与REST相比,使用SOAP UI是否有优势来自动化REST Services for CI [英] Is there an advantage in using SOAP UI over REST-assured to automate REST Services for CI

查看:47
本文介绍了与REST相比,使用SOAP UI是否有优势来自动化REST Services for CI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在我的项目中自动化REST API测试,并将其集成到jenkins中的现有CI中.

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

我将开始使用REST-assured进行编码.但是,我偶然看到了SOAP UI REST教程,并且了解到SOAP UI中有一个maven插件可以帮助jenkins集成.在开始之前,我只是想知道使用SOAP UI是否比Rest-assured有明显的优势.我必须在大约一个月的时间内完成大约30个带有复杂JSON响应的请求的自动化-包括响应的模式验证.

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

推荐答案

我没有使用 REST保证的,但是我快速浏览了一下,发现它是Java DSL 用于测试休息服务.鉴于它确实如其说的那样工作,这就是我的答案...

I haven't used REST-assured, but I had a quick look and I see it's a java DSL for testing rest services. Given that it does what it says it does, here's my answer...

我已经使用SOAP UI来测试Web服务.通常,SOAP UI对于手动测试非常好,但是我发现自动化测试很困难.

I've used SOAP UI for testing of web services. Generally, SOAP UI has been very good for manual testing, but I found it difficult for automated testing.

主要原因是许多文件路径都被硬连接到SOAP UI项目中,因此引用 c:\ development \ myproject \ wsdl \ myservice.wsdl 的项目突然不起作用在另一个开发人员机器上,位于/dev/myproject/wsdl/myservice.wsdl .

The main reason was that many of the file paths are hard corded into SOAP UI projects, and so a project referring to c:\development\myproject\wsdl\myservice.wsdl would suddenly not work on another developer machine at /dev/myproject/wsdl/myservice.wsdl.

我还发现无法有效地在intellij中编辑SOAP UI项目,这意味着我一直在进行Alt + Tab键切换.

I also found not being able to effectively edit the SOAP UI projects in intellij meant I was constantly alt-tabbing.

是的,soap ui maven插件确实可以工作,但是我发现它很麻烦.

Yes, the soap ui maven plugin did work, but I found it cumbersome.

请注意,我还没有使用过SOAP UI REST,只是使用了普通" SOAP UI,但是如果您的用例仅是为了实现自动化测试,并且 REST-assured 框架可以完成它的工作说,我当然会建议使用 DSL .

Note that I haven't used SOAP UI REST, just "normal" SOAP UI, but if your use case is purely to implement automated testing, and that the REST-assured framework does what it says, I would certainly recommend to use the DSL.

这篇关于与REST相比,使用SOAP UI是否有优势来自动化REST Services for CI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆