当前位置:网站首页>How postman does interface testing 1: how to import swagger interface documents

How postman does interface testing 1: how to import swagger interface documents

2022-06-23 08:48:00 Hemingway

In the use of postman In the process of doing interface test , The test engineer will fill the interface with a lot of parameters , Include url Address , Request method , A series of data such as message header and message body , When there are many request parameters, it takes a lot of time .

We can use postman Document import function , Direct import swagger Such open documents ,postman Automatically generate documents based on request content and related parameters , In this way, you can save a lot of time to fill in parameters manually .

And import swagger The only steps in the document are 2 Step , Very convenient .

First , First step , open swagger The address of the document , Click on export , Export online documents , You can choose json Format or yaml Format . The exported document will be saved locally .

The second step , open postman, choice "file" menu , Click on “import" , Select file import , Put the just downloaded json Just import the file .

The imported document will be automatically generated request Request information , Next, you only need to make simple changes to these parameters , You can send the request , You don't need to fill in one by one .

swagger It also supports online link import , Directly put the... Of the document json Format: fill in the online address to link Medium url Column is OK .

原网站

版权声明
本文为[Hemingway]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/01/202201081803526324.html