How to integrate JMeter with Selenium WebDriver for load testing?

I am using a keyword approach using Selenium WebDriver .

I plan to do load testing with an open source tool like JMeter .

Is JMeter good load testing tool? Is it a good idea to integrate JMeter with Selenium ? I want to know the pros and cons of this idea.

Give me the best approach for load testing tools for integrating with Selenium and the process of integrating JMeter with Selenium .

+8
selenium-webdriver selenium-grid jmeter load-testing
source share
2 answers

Yes, JMeter is a great tool for load testing. Using selenium inside JMeter is possible, but you will not be able to create a large load with thousands of users.

The pros and cons of using selenium inside JMeter is too broad a question to answer on SO, but here are a few links with specifics on how to do this:

http://jmeter-plugins.org/wiki/WebDriverTutorial/

http://www.suryarazmi.com/2013/08/how-to-use-selenium-webdriver-in-jmeter.html

http://blazemeter.com/blog/jmeter-webdriver-sampler

+9
source share

I also integrated Selenium WebDriver with JMeter, but used a Java query instead of WebDriver Sampler. Create your automation in java classes as indicated on the Selenium page, then add the JMeter client by extending the JMeter AbstractJavaSamplerClient and let it pass the arguments received from JMeter to the Selenium java jar. This is not suitable for testing heavy loads, as it moves most of the processing to the client side, but allows you to reuse Selenium java tests from junit, jmeter or command line. For projects that have lengthy workflows, they can be used by developers to load data into the environment, using testers as a regression test and developers for performance testing. For more detailed timings, you can store metrics in the database from a java request.

0
source share

All Articles