• Create a new Test Plan in JMeter.
  • Add a Thread group.
  • Make sure the Selenium related plugins are install in the JMeter tool, else get them added with the help of the “Plugin Manager” (found under “Options”).

    Screen Shot 2017-02-15 at 10.33.52

  • Right Click on the Thread Group Goto Controller -> Add Simple Controller
  • Go to Config Element -> Add Remote WebDriver Config to the Simple Controller.

    Screen Shot 2017-02-15 at 10.34.28.png

  • Go to Sampler -> Add WebDriver Sampler to the Simple Controller under Remote WebDriver Config

    Screen Shot 2017-02-15 at 11.02.50.png

  • Once the the WebDriver Sampler is added write the Selenium code in the Sampler to run your automated tests. Add an assertion, and the Listeners like Summary Report and other Listeners.

    Screen Shot 2017-02-15 at 11.03.21.png

  • Make sure you set up the hub in your machine and connect them to the nodes, and add the node machine IP Address in the Selenium Grid URL space in Remote Webdriver Config, As shown below.

    Eg:- http://<IP_ADDRESS&gt;:<NODE PORT>/wd/hub

    Screen Shot 2017-02-15 at 14.45.30.png

  • Now you can run the tests on the node machines.


2 thoughts on “Create JMeter tests which runs with Selenium Grid.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s