How to use selenium webdriver with jmeter.

Prerequisite
1. Download Apache JMeter from http://jmeter.apache.org/download_jmeter.cgi and UnZip
2. Download WebDriver plugins for JMeter from http://jmeter-plugins.org/downloads/all/#Latest-Stable-Release and UnZip
3. Download Mozilla Firefox 26 from http://mozilla_firefox.en.downloadastro.com/old_versions/ and install

How to install Selenium Webdriver in Jmeter
1. Copy the jar files from 'lib' folder of JMeterPlugins-WebDriver and paste to Jmeter_Home/lib folder.
2. Copy the files from ext folder and paste to Jmeter_Home/lib/ext folder.
3. Delete older / Duplicate http jars from Jmeter_Home/lib
Example:
    httpclient-4.2.6.jar (delect this jar)
    httpclient-4.5.jar
    httpcore-4.2.5.jar (delect this jar)
    httpcore-4.4.1.jar
    httpmime-4.2.6.jar (delect this jar)
    httpmime-4.5.jar

4. Now the Installation is Completed.

How to configure and run Jmeter
1. Start Jmeter
Click on Jmeter_Home/bin/ApacheJMeter.jar or jmeter.bat to open Jmeter window

2. Add 'Thread Group' under 'Test Plan'
Right-click on the Test Plan > Add > Threads (Users) > Thread Group
Number of Threads (users): 1
Ramp-Up Period (in seconds):  1
Loop Count: 1
3. Add 'jp@gc - Firefox Driver Config' under 'Thread Group'
Right-click on the Thread Group > Add > Config Element > jp@gc - Firefox Driver Config

4. Add 'jp@gc - WebDriver Sampler' Sampler under 'Thread Group' 
Right-click on the Thread Group > Add > Sampler > jp@gc - WebDriver Sampler

WDS.sampleResult.sampleStart()
WDS.browser.get('http://www.google.com')
WDS.sampleResult.sampleEnd()



5. Add 'View Results in Table' and View Results Tree Listener under 'Thread Group'
Right-click on the Thread Group > Add > Listener > View Results Tree
Right-click on the Thread Group > Add > Listener > View Results in Table

6. Finally Save Test plan then Press Menu > Run > Start or 'Ctrl'+ 'R' to run Test plan
  Open Firefox browser then navigate to 'http://www.google.com'



N.B: You can change all names like as 'Test Plan', 'Thread Group', 'Sampler' and 'Listener' name

6 comments:

  1. hi sir its really help full and really good to learn in a expert way in selenium?
    hi have some doubts in selenium ?they are
    Q)where we use abstract concept in testing ?
    Q)where we use polymarhisam concept in testing?
    give one real time senario with explanation please provede me sir i asked so many professional like u but i don't get the answers .I hope u can ?


    ]

    ReplyDelete
    Replies
    1. Hiro Mia: How To Use Selenium Webdriver With Jmeter. >>>>> Download Now

      >>>>> Download Full

      Hiro Mia: How To Use Selenium Webdriver With Jmeter. >>>>> Download LINK

      >>>>> Download Now

      Hiro Mia: How To Use Selenium Webdriver With Jmeter. >>>>> Download Full

      >>>>> Download LINK Mn

      Delete
  2. This error is shown after copying the jar files to the lib and on opening jmeter "edit" is disabled
    "
    ERROR - jmeter.JMeter: Uncaught exception:
    > java.lang.NoClassDefFoundError: Could not initialize class
    > org.apache.jmeter.gui.util.MenuFactory"

    pls tell me How to resolve this

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. hi sir,it wont work.Browser dont open and dont show the google page.
    No errors are displayed.

    ReplyDelete
  5. Hiro Mia: How To Use Selenium Webdriver With Jmeter. >>>>> Download Now

    >>>>> Download Full

    Hiro Mia: How To Use Selenium Webdriver With Jmeter. >>>>> Download LINK

    >>>>> Download Now

    Hiro Mia: How To Use Selenium Webdriver With Jmeter. >>>>> Download Full

    >>>>> Download LINK L9

    ReplyDelete