As Jmeter and Selenium can integrate together, so selenium scripts can be run in Jmeter to get some ideas on their performance.

Ways to run it-

  • Using Junit libraries we can build Selenium scripts, save them as Jars and copy them in the Jmeter directory.
  • We can also add the Junit sampler to the respective test plan and then import the Jar file.
  • Another way to run them is, add the Webdriver sampler plugin to the ext folder and after that restart the Jmeter. Write the selenium code in that sampler and execute the scripts to see their performance.
BY Best Interview Question ON 01 Mar 2022