Skip to content

Latest commit

 

History

History
43 lines (21 loc) · 1.58 KB

start_guide.md

File metadata and controls

43 lines (21 loc) · 1.58 KB

Start Guide

Guide to start with the tool

If you import the autogenerated file in postman, you will see the following structure:

image1.png

In all cases the status is checked and it is verified that the scheme of the output corresponds to the defined. In the 400 the wrong types and the obligatory fields are tested. To check the 401, the authorization header is not sent.

image2.png

swagger2postman also generates a file of type environment with all the variables of both the bodies and the paths. These variables are used by the collection of postman generated to compose their bodies and their paths.

image3.png

In the endpoints protected by basic token or by apikey an environment variable will be generated for these tokens.

image4.png

image4-bis.png

if you use the securityDefinition of type oauth2 you will need to pass as an argument another collection that includes the requests to get the token. The name of each request will be the name of the securityDefinition and the token with the same name will be set in the test part. After that request will be copied to the result collection to get the token.

image5.png

image5-bis.png

401 will be tested not sending the token.

image6.png

images/image6-bis.png

400 will be tested not sending required parameters.

image7.png

400 will be tested sending parameters with other types.

image8.png