Jmeter, Software Testing

Setting up WebDriver Sampler for full browser tests in Jmeter

We had an important task to load test the web-app whose front-end is based on Angular-js Framework. JMeter is not a browser. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however, JMeter does not perform all the actions supported by browsers. In particular, JMeter does not execute the Javascript found in HTML pages. Nor does it render the HTML pages as a browser does (it’s possible to view the response as HTML etc., but the timings are not included in any samples, and only one sample in one thread is ever viewed at a time).

Owing to this we moved to Webdriver Sampler plugin for handling Client-side Javascript execution — eg. AJAX, JS templates.

Steps to Download and configure Webdriver Sampler:


Jmeter 1.8 and above ( with JRE 1.6.

  1. Download JMeter- Webdriver Sampler plugin from here.
  2. Extract The zipped folders lib files into the lib folder of Jmeter.
  3. Copy the ext files of extracted folder into ext files of Jmeter
  4. Now Open the Jmeter and Add Thread Group.
  5. Right Click on thread group and click on Add > Sampler. Here you should see a new set of samplers added as below: