Load testing with Postman REST/RESTFUL tool

2019-04-18 05:17发布

问题:

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?

回答1:

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:

  • Using SoapUI for load testing
  • Testing SOAP/REST Web Services Using JMeter

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.



回答2:

At LoadImpact, we have built a CLI converter to transform a Postman collection into a Load Impact script.

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

npm install -g postman-to-loadimpact
postman-to-loadimpact examples/v1/postman/echo.json

You may need to tweak the Load Impact script in some cases:

  • to provide variable values
  • to replicate the behaviour defined in your Postman pre-request or functional test.

Check out the following article Load testing with Postman

I hope, it can help.



回答3:

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.



回答4:

You can open multiple Collection Runner windows in Postman to run parallel collections.