Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stress test a javascript-requiring Web App

A similar question was already asked ( Performing a Stress Test on Web Application?), but I'd like to test a web application that prevents double-submits and takes some counter-XSRF actions and therefore REQUIRES JavaScripts to be evaluated.

Has anybody done stress tests with web apps that require (and use) JS and any experience to share?

jMeter wouldn't work I guess...

Thanks!

like image 545
wilth Avatar asked Oct 18 '08 22:10

wilth


People also ask

Which tool can be used for stress testing of application?

JMeter is the most popular open-source tool in the performance space to help measure load time. Apache JMeter describes itself as a Java application that was designed specifically for load testing with the ability to measure application performance and response times.

Which load testing tool support scripting JavaScript?

Load Testing JavaScript Applications with LoadView LoadView is a fully managed, cloud-based load testing platform, allowing users to test the performance of websites, web applications, APIs, streaming media, and more.


2 Answers

Watir?

Watir is a simple open-source library for automating web browsers. Watir drives browsers the same way people do. It clicks links, fills in forms, presses buttons. Watir also checks results, such as whether expected text appears on the page.

It drives Internet Explorer, but is also functional with Firefox (and Safari to some extent).

like image 170
Pistos Avatar answered Sep 22 '22 06:09

Pistos


The problem with Watir and Selenium RC or any other full browser solution is that they need a full browser :P

Browsers are very expensive to run, often requiring 300MB or more of RAM. Multiply those requirements by even 100 and you need massive hardware. Fortunately, there is a solution: I recently started a company that does exactly what you're looking for.

Check out http://browsermob.com and you can run a limited test (up to 25 users) to get a feel for the app. Feel free to contact us if you have any questions at all!

like image 45
Patrick Lightbody Avatar answered Sep 24 '22 06:09

Patrick Lightbody