Load testing with Postman REST/RESTFUL tool

Load TestingPostman

Load 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.

enter image description here

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 Little arrow along with collection

Step 2- Then click on the Run button to launch Collection runner 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 Collection runner 2

The screenshot has counts that explains each part

  1. Is the iterations or the number of users

  2. Is the ramp up time or how often the users will hit or come

  3. Is for logging requests

  4. Date selection for what day this test was done

  5. For running the test

  6. All Api collection

  7. All Api listing

  8. 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.

Example

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.

Solution 7 - Load Testing

You can't perform load testing with Postman, but you can adapt your test suites implemented in postman collections to load testing tools using the newman utility (which is especially useful in conjunction with the jq program).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKuntalView Question on Stackoverflow
Solution 1 - Load TestingMatt FrearView Answer on Stackoverflow
Solution 2 - Load TestingppcanoView Answer on Stackoverflow
Solution 3 - Load TestingMoeez MazharView Answer on Stackoverflow
Solution 4 - Load TestingDmitri TView Answer on Stackoverflow
Solution 5 - Load TestingRameshView Answer on Stackoverflow
Solution 6 - Load Testinguser3416686View Answer on Stackoverflow
Solution 7 - Load TestingVladimir ShiyanovView Answer on Stackoverflow