Wednesday, June 10, 2015

Real Browser Performance Testing with Jmeter


In case you want to have more realistic performance test results , use of browser based performance testing is the way to go. As we know that Selenium has capability to perform browser based testing using WebDriver.  This blog describes step by step procedure to configure Selenium WebDriver with Jmeter and how to use it for performance testing activities.

Configuring WebDriver Plugin:   

  1. Download Selenium web driver plugin from jmeter-plugins.org
  2. Copy extracted jar files into /lib and lib/Ext
  3. Delete Older / Duplicate Jars files from /Lib  
 
Once you have completed above steps , you are done with configuration. 
 
Creating Browser based Test Script in Jmeter - WebDriver Plugin: 
 
  • Open Jmeter and Add Thread Group
  • Add Firefox Driver config' from config element
 
  • Add WebDriver Sampler
  • Add WebDriver code
 
 
  • Add Listener for Debugging
  • Run the Test
 

1 comment: