Import swagger definition to SoapUI community edition?
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
- Create an empty project using
File -> Create Empty Project
menu options. - Right click on the project created in above step.
- You should be able to see an option like
Import Swagger
as shown below. - It will show a dialog where you can provide the swagger definition url.
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.
I had the same problem.
In my case I installed the SoapUI without the option "Source".
You need to reinstall the application with this option.