Load testing with Postman REST/RESTFUL tool

2019-04-18 04:59发布

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?

4条回答
Lonely孤独者°
2楼-- · 2019-04-18 05:02

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.

查看更多
Explosion°爆炸
3楼-- · 2019-04-18 05:07

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.

查看更多
Explosion°爆炸
4楼-- · 2019-04-18 05:09

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

查看更多
来,给爷笑一个
5楼-- · 2019-04-18 05:15

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

查看更多
登录 后发表回答