how to stress test ajax application?

I am writing an AJAX application and would like to run performance test on the server.

How do I record the trafic to the server and play it back as if it was real a-sync test as it is in AJAX

What tool should I use here

Eran



Answer this question

how to stress test ajax application?

  • Ed Hintz

    You could use the web test and load test functionality in VSTS. The one problem is that the web test recorder will not record the ajax requests. However, you can use fiddler, www.fiddlertool.com, to record all requests and generate a web test. Then you can take the web test and add it to a load test to stress the server.

  • Electuur

    To be most accurate- you cannot test AJAX with the tools provided in VSTS. It also seems that reusing elements returned from the tests- say a string regexed from the response in a subsequent test- i snot possible either It seems that this tool is not inteded for the testing of a web site that uses any technology other than HTTP requests unless you are willing to write the external plug-ins needed.

    At this point I am close to returning to LWP for useful site testing.

    I expect that there are really good things you can do with this Testing Suite if you are prgramatically testing code before it gets deployed that you will then have to test again using another 'real-world' tool once deployed.

    I am saying 'seems' to all of this becasue I have been trying to read everything I can get my hands on and to the best of my knowledge so far, these things seem to be true.

  • Chrisky

    How about using AJAX to test it This is a basic AJAX enpoint test tool written in all javascript.

    http://www.crossedconnections.org/w/index.php/2006/11/08/ajax-app-to-test-the-performance-of-your-ajax-apps/

  • Matt_343

    What is this "LWP for useful site testing" that was referred to in the previous post  

    Does VSTS support correlation of returned data   For example, if a confirmation number is returned, can I capture that number and reuse it later in the test   This seems like what was referred to in the previous post.



  • vue

    LWP is a Perl module that lets you write scripts to consume web data. I have two of these bots hitting our site right now. They validate content from one request to the next- like extracting a user id from AJAX returned XML that is then used in subsequent web requests across our site. It also reports response times. The beauty of these bots is that they can be run anywhere Perl is installed. This is outstanding for OS X testing and stress testing the site from our Linux box.

    This dynamic testing is something that does not seem possible with the Test Suite. I have looked for a way to use extracted/regexed text in subsequent calls in the VSTS environment but every attempt has failed. If you write an extraction rule the 'variable' name that you give does not seem to be consumable in subsequent calls. Apparently you have to write additional code to make this work Why bother with test suite predefined tests in this case Why not just write the code from the ground up yourself

    Just this morning our site passed according to the tests and their validations in VSTS but a double check with the Perl bots revealed a serious error- whole page's data were not being rendered but since it was AJAX- VSTS didn't catch it.

  • how to stress test ajax application?