Duncan
Duncan

Reputation: 10291

Stress Testing AJAX

My web application is almost exclusively AJAX-based, where data is fetched via a web service and returned via JSON.

I'm using WAST to stress test, but I'm sure there are better tools out there for this job.

Does anyone have recommendations?

Thanks

Upvotes: 0

Views: 1398

Answers (5)

Yasei No Umi
Yasei No Umi

Reputation: 1574

Take a look at WebLOAD - I've used it in AJAX heavy site.

Upvotes: 0

QingHai
QingHai

Reputation: 138

Take a look at LoadBooster(https://www.loadbooster.com). LoadBooster utilizes headless scriptable browser PhantomJS to test web sites. Phantomjs will parse and render every page, execute the client-side script. The headless browser approach is easier to write test scenarios to support complex AJAX heavy Web 2.0 app,browser navigation, mouse click and keystrokes into the browser or wait until an element exists in DOM.

Disclaimer: I work for LoadBooster.

Upvotes: 0

user121579
user121579

Reputation: 36

The ab Apache Benchmarking tool that can send custom headers, take a file argument for post data, and write results to a CSV for you. Good if you're command-line savvy. man ab for more info.

Upvotes: 1

Patrick Lightbody
Patrick Lightbody

Reputation: 4534

Ryan recommended Selenium, which isn't traditionally a load testing tool. He is correct that of all the recommendations so far, it's by far the best at handling AJAX. The reason is that Selenium drives a real web browser and can be programmed to "wait" for AJAX events to occur, such as a "DIV" element popping up or disappearing.

The problem with that approach is that browsers take up a ton of resources. You can't run more than 2-3 on a single server - far fewer than you can run VUs with JMeter. That's why I created BrowserMob, a service perfect for AJAX load testing.

As the co-creator of Selenium RC, I felt that using Cloud Computing was a great way to "have your cake and eat it too". Using hundreds of computers in the cloud, you can generate large volumes of load from real browsers, which handle AJAX very easy. To learn more on this subject, check an article I wrote for Ajaxian here.

Upvotes: 2

Alex Brown
Alex Brown

Reputation: 42872

Take a look at loadrunner.

http://en.wikipedia.org/wiki/LoadRunner

Upvotes: 0

Related Questions