Tools for Ajax load testing

前端 未结 14 1084
悲哀的现实
悲哀的现实 2021-02-04 05:42

There seems to be a lot of stress/load testing tool that support AJAX.
I am wondering how well does these tool implemented.

Do they only record http request and repl

相关标签:
14条回答
  • 2021-02-04 05:49

    Most of the load testing tools out there do AJAX load testing the same way: they execute the raw HTTP traffic that is seen during a "recording" phase (which can be page requests, image requests, or even AJAX requests). The main difference among them is how good their recorder/IDE tool is and how easily it helps you parameterize the HTTP requests such that they reflect real world traffic based on dynamic/realtime results.

    Warning, blatant plug: The only real exception to this is my company, BrowserMob. Instead of simulating the traffic observed, it actually uses real web browsers to drive back load. As such, the AJAX stuff is handled by the browser.

    Useful link: Separate from the blatant plug above (though I do hope you check it out - we're up front with the pricing and provide a free trial), I recently wrote an article for Ajaxian about AJAX load testing. It goes in to more detail about the technical implications of using real browser users (RBUs) vs. virtual users (VUs).

    0 讨论(0)
  • 2021-02-04 05:50

    You can also have a look at fwptt it is open source. If you are a .net developer you can make use of the parameter automatic handling and the possibility to use your own .net object for doing the tests.

    0 讨论(0)
  • 2021-02-04 05:51

    If you are worried about functionality only, something like Watin, Watir, Selenium or any functional tool for that matter would work. As long as you put sufficient timing in your functional tests to allow for ajax callbacks then that should do the trick.

    To add to my response,

    If you are talking about unit testing your javascript you could use something like qunit as described by a fellow LosTechian in this posting. This is a pretty inventive use of an nunit addin and qunit for integrating js unit tests.

    By pure coincidence, the same person that posted that qunit testing blog post just posted one yesterday about this very topic

    0 讨论(0)
  • 2021-02-04 05:52

    My choice is firebug(browser addon). its very lightweight and easy to handle

    0 讨论(0)
  • 2021-02-04 05:54

    I've successfully used JMeter to load test our Ajax (JSF/RichFaces) application. I didn't bother with JMeter's recording tool - rather I used the HttpFox plugin for Firefox to monitor what the browser is POST-ing to the server and I recreated this in JMeter.

    It did get a bit complex, but the load test is now fairly robust. JMeter has all kinds of useful 'elements' to extract ID's from a web page, perform conditional logic, increment counters etc.

    0 讨论(0)
  • 2021-02-04 05:57

    Siege? it can do HTTP testing and pass whatever you want.

    0 讨论(0)
提交回复
热议问题