Forum Discussion

BostonKevin's avatar
BostonKevin
Contributor
5 years ago
Solved

Automatic Testing of Swagger Editor

Hi All,

 

Is there would a tool that allows automatic or semi-automatic testing of the APIs that are documented with Swagger Editor?

 

Our group has, of course, people who test API functionality with Curl and other tools.  Swagger Editor is used to document the APIs but since so much of the document has live examples, there is a lot of manual API testing that is performed through Swagger Editor.   

 

It would be helpful if there were some way that an automatic test program could be run through the JSON or YAML so that any underlying changes to the APIs could be caught and the document updated accordingly.

 

Thanks!

Kevin 

 

  • There isn't such functionality built into Swagger Editor, or rather, Swagger UI. However, there are plenty of tools out there that are able to consume your API definitions and run tests on them. Within SmartBear, we have ReadyAPI for example, that can do that. Alternatively, you can also use Swagger Codegen to automatically create test code or test scripts.

     

    **Edit: just noticed HKosova replied as well, and her replies are always better ๐Ÿ˜ƒ

  • Sisson9's avatar
    Sisson9
    5 years ago

    Yeah Swagger UI would be a great option to deal with.,,It works quite smooth and fast...Also it is very much accurate..u can definetly go for it..Stay blessed

4 Replies

  • There isn't such functionality built into Swagger Editor, or rather, Swagger UI. However, there are plenty of tools out there that are able to consume your API definitions and run tests on them. Within SmartBear, we have ReadyAPI for example, that can do that. Alternatively, you can also use Swagger Codegen to automatically create test code or test scripts.

     

    **Edit: just noticed HKosova replied as well, and her replies are always better ๐Ÿ˜ƒ

    • Sisson9's avatar
      Sisson9
      Occasional Visitor

      Yeah Swagger UI would be a great option to deal with.,,It works quite smooth and fast...Also it is very much accurate..u can definetly go for it..Stay blessed

    • BostonKevin's avatar
      BostonKevin
      Contributor

      Thank you all for your help.  I will try to convince management that Ready API is a worthwhile investment.