Install the JMeter Plugins Manager?
  1. Download the Plugins Manager JAR file
  2. Put the file in the lib/ext directory
  3. Restart JMeter
  4. Click “Options” and then “Plugins Manager”
The "Installed Plugins" tab shows you which plugins are installed. To uninstall, uncheck the box next to the plugin name. The Plugins in Italics can be upgraded by choosing the version on the right.

The "Available Plugins" tab shows which plugins can be installed. To install, check the box next to the plugin name.

How to Integrate Selenium with JMeter:
  1. Open JMeter
  2. Click “Options” and then “Plugins Manager”
  3. Click on Available Plugins and search for "Selenium/WebDriver Support
  4. Toggle "Selenium/WebDriver Support" checkbox and Click on Apply Changes and Restart button
  5. Create a Test Plan
  6. Right click on Test Plan - Add -Threads(Users)-Thread Group
  7. Right click on Thread Group and Add Config Element - jp@gc - Chrome Driver Config

  8. Download chromedriver.exe and provide the location in   Chrome Driver Config   e.g. - D:\Desktop\drivers\chromedriver\chromedriver.exe
  9. Right click on Thread Group and Add
    Sampler - jp@gc - Web Driver Sampler
    Listener - View Results Tree
  10. Add scripts in Web Driver Sampler
  11. WDS.sampleResult.sampleStart()
    WDS.browser.get('https://google.com')
    WDS.sampleResult.sampleEnd()
    WDS.sampleResult.sampleStart()
    WDS.browser.get("https://www.google.com/");
    var searchBox = WDS.browser.findElement(org.openqa.selenium.By.name("q"));
    searchBox.click();
    searchBox.sendKeys('Test');
    searchBox.sendKeys(org.openqa.selenium.Keys.ENTER);
    WDS.sampleResult.sampleEnd()
    
  12. Save Test plan
  13. Click on Run button 
  14. Validate Test results by clicking on View Results Tree

  15. Note:
  • WebDriver Sampler automates the execution and collection of Performance metrics on the Browser (client-side)
  • While using WebDriver sampler each thread will have a single browser instance and each browser consumes significant amount of resources.