70 days ago · Tech · hide · Fediverse post

With the last post, Testing the Swagger Petstore: Reviewing API Documentation Formatted in OpenAPI 3.0 with Swagger UI we started exploring an API with Swagger UI, such as the Swagger Petstore at https://petstore3.swagger.io/Here, we will start exploring how to test an API using the Swagger UI.The tests we can run are:Happy Path Testing, checking the Positive ScenariosNegative Testing, reviewing the Invalid Inputs & Error HandlingBoundary & Edge Case Testing, checking how the API handles the extreme limits of allowed input rangesAuthentication & Authorization TestingContract and schema validationWe can see in the Swagger PetStore there are three tag groups: Pet, Store, and User. Because this is a Swagger UI doc, we can perform manual testing using only the "Try it out" feature in Swagger UI. No external tools needed! Live HTTP requests can be executed directly from your browser.Types of Testing for the APIHere are a few types of testing and examples you can do in Swagger UIHappy path…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town