I've been trying to evaluate load and perfomance test tools and i think i might either go with Jmeter or The Grinder. I am struggling to choose between the two and hoping that someone here can help.
I am currently using selenium to run functional tests of the web application and i now need to include load testing as part of the batch job. My plan is to automate the whole process.
A couple of questions i have about the two tools
- Is it possible to use Java to program the test cases to run rather than Jython for Grinder and XML for Jmeter?
- How easy is it to integration Jmeter or Grinder with Ant and Junit
- Does grinder work the same way as Jmeter. i.e. it only sends the request URLs to the server and does not do any pre-processing before submission? e.g. a javascript method called on an onSubmit of a form.
- For an application that has a lot of javascript and dynamic css/javascript processing, which would you recommend would be best suited. For example, a lot of the forms are submitted dynamically. i.e. when the user clicks on the submit button, it doesnt just submit the form, a javascript function is usually called that does some processing before the form is submited. In some cases the form itself is built dynamically using Javascript. Which of the two tools do you think will handle this much better?
- Has anyone got any tips and or whether it is possible to integration Selenium with either Jmeter or Grinder and which is easier to integrate with Selenium.
Thanks
JMeter and most other load testing tools are designed to operate at the protocol-level (HTTP GET, HTTP POST, etc). Selenium, on the other hand, works at the user-level (click, type, drag and drop, etc). They are fundamentally not well-suited to work together.
If you want to do Selenium load testing, check out http://browsermob.com. Disclaimer: I'm the founder of BrowserMob :)