Run Selenium on Jmeter

This tutorial is basically for testers who have their written Selenium test scripts. Also testers who wants to use their existing selenium test scripts to load and performance testing using Jmeter.

Jmeter is a powerful tool which you provide several functionalities to run your selenium scripts to get testing statistics.

Step 01

Export Selenium Script

You should have junit test cases to export from eclipse as a jar file.

  1. right click on the project
  2. select export
  3. export as jar file

Step 02

Run Script on Jmeter

  1. click on test plan and browse the jar file you need to add.
  2. right click on test plan and add a thread group.
  3. right click on thread group and add->sampler->Junit request
  4. Then you can select the classname and test methode to run on the jmeter.

Note: If you have existing test scripts written using other test frameworks like testng, so far jmeter doesn’t support testng but we could use beanshell sampler to execute testng test scripts.

but if you use testng as your test frameworks, you could do all the load and performance testing without using Jmeter 🙂

One Comment

Leave a comment