Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integration Selenium with either Jmeter or the Grinder

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

like image 765
ziggy Avatar asked Jan 22 '23 06:01

ziggy


1 Answers

How easy is it to integration Jmeter or Grinder with Ant and Junit

jMeter can run any jUnit3 test and there is patch to allow it to run with jUnit4.

I have run selenium tests from jMeter, the big problem is that you cant run too many tests at once. On my machine I had run 8 tests at once and its not really enough to test performance. also test take some time to initialize.

like image 181
IAdapter Avatar answered Jan 23 '23 21:01

IAdapter