Import swagger definition in SoapUI for free?

I play with SoapUI (a free open-source publication) to find out if it can be useful at work for such extensive API testing, which we often do, because now we conduct most of our testing directly on the -ui swagger in each server / application, and some functions, such as automation of some test cases, can be very convenient (among many others).

The problem is that I cannot figure out how to import all endpoints into SoapUI without having to manually create them one at a time. I see that there is an opportunity to import from swagger, but I can not get it to work, and googling around has not helped me yet.

  • Can this be done with the free version? I know REST discovery is a professional feature, but that is not what I am looking for.
  • Can someone tell me what the steps will be? I tried pointing it to the swagger-ui page, but did nothing. I have access to the source code of the application (written in java + spring), will there be a swag definition that I need to import somewhere there? Tried, but I probably don’t look in the right place.

I know that I am stuck in something that is probably ridiculously simple, but I would appreciate any help on this.

Edit: this is using SoapUI version 5.2.1

+7
swagger soapui
source share
2 answers

Below are the steps you can follow to import the swagger definition into the SoapUI , and make sure that the swagger definition is in the hand or its url (basically json).

The prerequisite is that a swagger plugin installed for the SoapUI, as shown here

  • Create an empty project using the menu options File -> Create Empty Project .
  • Right-click the project you created in the previous step.
  • You should see an opportunity like Import Swagger , as shown below. Import Swagger
  • A dialog box appears in which you can specify the URL for the swagger definition.

You are done. All resources and methods should appear in your project.

If you do not see the Import Swagger option in the context menu, the plugin is not installed. I am sure that it is installed if you installed SoapUI-5.2.1

Update

Adding a definition of public sampling, so it would be convenient if someone wants to try it.

Here is the pet shop definition of swagger v2.0 SwaggerUI

You will see something like below when the swagger definition is imported.

After successfully importing swagger definitions

+15
source share

I had the same problem.

In my case, I installed SoapUI without the "Source" option.

Install Windows SoapUI

You need to reinstall the application using this option.

+1
source share

All Articles