Multiple API requests from CSV file as parameters
emmalee last edited by
Let's say that my domain is api.test.com, path is /v1/products and I have to do 1000 API requests with different products as parameters. Examples:
- GET api.com/v1/products/product1
- GET api.com/v1/products/product2
- GET api.com/v1/products/product3
- GET api.com/v1/products/product4
How to do this in Postman or Jmeter and read products as parameters from CSV file?
On Postman, you have to set the file on the Collection Runner.
With this, you can use the variables in your requests as regular variables.
For JMeter, refer to this Blazer Meter article: https://guide.blazemeter.com/hc/en-us/articles/206733689-Using-CSV-DATA-SET-CONFIG