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.
Write a request:
If you want to mark the request results, you can add it in Tests
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:
The first line is the name of the variable, followed by the variable value. Save the file.
Save the request to a collection.
Click Run
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.