我正在尝试使用 SoapUI(免费/开源版本),看看它是否对我们经常进行的那种广泛的 API 测试有用,因为现在我们大部分测试都是在 swagger 上进行的每个服务器/应用程序中的 -ui 页面以及一些功能(例如自动化某些测试用例)可能非常方便(以及许多其他功能).
我遇到的问题是,我无法弄清楚如何将所有端点导入到 SoapUI 中,而不必手动一一创建它们.我看到有一个从 swagger 导入的选项,但我似乎无法让它工作,谷歌搜索到目前为止对我没有帮助.
我知道我陷入了一些可能非常简单的事情,但我很感激这方面的任何帮助.
这是使用 SoapUI 版本 5.2.1
解决方案您可以按照以下步骤将 swagger 定义导入 SoapUI,并确保 swagger 定义 在手或其 url(基本上是一个 json ).
前提是,为 SoapUI 安装了 swagger 插件,如图
你已经完成了.所有资源及其方法都应出现在您的项目中.
如果您无法在右键单击上下文中看到 Import Swagger 选项,则说明未安装插件.如果您安装了 SoapUI-5.2.1
,请确保它已安装更新
添加一些公开的 swagger 定义,这样对于想要尝试的人来说会很方便.
这是
I'm playing around with SoapUI (the free/open source edition) to see if it could be useful at work for the kind of extensive API testing we often do because right now we do most of our testing right on the swagger-ui page in each server/app and some of the features like automating some test cases could be really handy (among many others).
The problem I have is that I can't figure out how to import all the endpoints into SoapUI without having to manually create them one by one. I see there's an option to import from swagger but I can't seem to get it to work and googling around hasn't helped me so far.
I know I'm stuck in something that's probably ridiculously easy but I would appreciate any help with this.
Edit: This is using SoapUI Version 5.2.1
解决方案Here are the steps you can follow in order to import the swagger definition into SoapUI, and make sure swagger definition is in hand or its url(basically a json ).
Pre-condition is that, swagger plugin is installed for SoapUI as shown here
You are done. All the resources and its methods should appear in your project.
If you are not able to see the Import Swagger option in the right click context, then plugin is not installed. Am sure it is installed if you have installed SoapUI-5.2.1
Update
Adding some public swagger definition, so that it would be handy for someone wish to try one.
Here is the pet store swagger definition v2.0 by SwaggerUI
You would see something like below once swagger definition is imported.
更多推荐
将 swagger 定义导入 SoapUI 社区版?
发布评论