Import swagger definition to SoapUI community edition?

前端 未结 2 1729
醉酒成梦
醉酒成梦 2021-02-19 09:22

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 mos

相关标签:
2条回答
  • 2021-02-19 09:47

    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.

    0 讨论(0)
  • 2021-02-19 09:59

    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

    1. Create an empty project using File -> Create Empty Project menu options.
    2. Right click on the project created in above step.
    3. You should be able to see an option like Import Swagger as shown below.
    4. 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.

    0 讨论(0)
提交回复
热议问题