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
Hi Kevin,
SmartBear has API testing and monitoring tools with OpenAPI support:
- SoapUI Pro (part of ReadyAPI) - an API testing tool that lets you create automated tests from OpenAPI definitions and validate API responses against the schema.
- AlertSite - a website and API monitoring tool that lets you create API monitors from OpenAPI definitions.
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 😃
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