48
votes

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?

7

7 Answers

34
votes

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

29
votes

At k6.io, we have built a converter to generate a k6 load test from a Postman collection.

https://github.com/loadimpact/postman-to-k6

npm install -g 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

22
votes

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.

19
votes

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

16
votes

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

2
votes

In short, there is no way to perform load test through Postman directly. You can use different tools like Jmeter and SOAP UI etc.

0
votes

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