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:

Prerequisite:

Jmeter 1.8 and above (https://jmeter.apache.org/download_jmeter.cgi) 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:

1_3Pn5-guHbnSIQp5zNMDrhA

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s