Postman usage tutorial - steps to use postman to send requests in batches

Time: 2020-09-07Source: Huajun Software TutorialAuthor: blue thin mushroom

Presumably many new users of Postman are not familiar with the operation of sending requests in batches. For this reason, in the following tutorial, the editor will bring you the steps of using Postman to send requests in batches. Friends in need come and learn together!

Suppose there is a GET request, and now you want to request multiple IDs in batches (for example, 1 to 100)

First click the eye icon in the upper right corner of postman, then click Edit to add a global variable id.

1.jpg

Write a request:

2.jpg

If you want to mark the request results, you can add it in Tests

3.jpg

If the return result is 200, a Status code is 200 mark will be added.

Create a new file named data.csv or data.txt. Personally, I feel that csv files are better. Edit the file as follows:

4.jpg

The first line is the name of the variable, followed by the variable value. Save the file.

Save the request to a collection.

5.jpg

Click Run

6.jpg

select File Select the newly created csv document. If there is tag information, you can check Keep variable values. Click Run to batch requests.

ps: If you need multiple parameters, declare multiple variables. The CSV file can be in the following format

The above explains the steps of using postman to send requests in batches. I hope friends in need can learn it.

Related articles更多>>

Popular recommendations