Load testing with Postman REST/RESTFUL tool
Load TestingPostmanLoad Testing Problem Overview
I have added the plugin Postman to Chrome browser for load testing of my API.
But I am clueless about how to do the load test with Postman tool.
My query is how to simulate "Virtual Users" in this tool?
Load Testing Solutions
Solution 1 - Load Testing
Postman has a Collection Runner
which can be used for making API calls with multiple iterations.
You might be able to use it for load testing if you can figure out how to get it to run requests in parallel.
Solution 2 - Load Testing
It exists a converter to generate a k6 load test from a Postman collection.
https://github.com/apideck-libraries/postman-to-k6
npm install -g @apideck/postman-to-k6
postman-to-k6 collection.json -o k6-script.js
k6 run --vus 100 --duration 3m k6-script.js
For further information, check out the following article Load Testing Your API with Postman
Solution 3 - Load Testing
Hi I would suggest That you use Jmeter for load testing it is designed for it. But some people find it easier to use postman as collections are already created in it and it is much more interface friendly.
Step 1- Click on the little arrow along with your collection in the collection listing
Step 2- Then click on the Run button to launch Collection runner
Collection runner is the part which is used for sort of Load testing
Step 3- Collection runner has a lot of important parts to consider for load testing
The screenshot has counts that explains each part
-
Is the iterations or the number of users
-
Is the ramp up time or how often the users will hit or come
-
Is for logging requests
-
Date selection for what day this test was done
-
For running the test
-
All Api collection
-
All Api listing
-
Environment selection
After running the required results will show and I have redacted information for privacy
Solution 4 - Load Testing
I don't think you'll be able to conduct load testing using Chrome Extension, consider more specialised tools for it, i.e. SoapUI or Apache JMeter
References:
SoapUI is designed for testing web services and load testing is secondary option and JMeter is designed for load testing and doesn't have any web-services specific functionality however if I had to choose I would go for JMeter as it can produce more immense load and has better reporting capabilities.
Solution 5 - Load Testing
You can open multiple Collection Runner windows in Postman to run parallel collections.
Click on the Run again and again. You will get new collection window opened. Kick off each collection one by one and they all will start running.
Solution 6 - Load Testing
In short, there is no way to perform load test through Postman directly. You can use different tools like Jmeter and SOAP UI etc.