Load testing with Postman REST/RESTFUL tool

Deadly 提交于 2019-12-05 08:55:52

问题


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:


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.




回答3:


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.




回答4:


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.




回答5:


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

  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



来源:https://stackoverflow.com/questions/36307005/load-testing-with-postman-rest-restful-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!