Jmeter integrated with selenium

136 views
Skip to first unread message

Alagammai Palaniappan

unread,
Jul 15, 2021, 8:17:15 AM7/15/21
to jmeter-plugins
Hi 

I have tried using sub samples WDS.sampleResult.subSampleStart in jmeter but i am getting error as subSampleStart function is not found after adding this line in jmeter property file  "webdriver.sampleresult_class=com.googlecode.jmeter.plugins.webdriver.sampler.SampleResultWithSubs"

is there any method to find the sub samples?

DT

unread,
Jul 16, 2021, 2:59:47 AM7/16/21
to jmeter-plugins
  • Add this line webdriver.sampleresult_class=com.googlecode.jmeter.plugins.webdriver.sampler.SampleResultWithSubs to user.properties file (lives in "bin" folder of your JMeter installation) or pass it via -J command-line argument like jmeter -Jwebdriver.sampleresult_class=com.googlecode.jmeter.plugins.webdriver.sampler.SampleResultWithSubs -t test.jmx ....
  • Restart JMeter to pick the property up
  • Use the following code in the WebDriver Sampler:

WDS.sampleResult.sampleStart()
WDS.sampleResult.subSampleStart('JMeter Plugins')
WDS.browser.get('http://jmeter-plugins.org')
WDS.sampleResult.subSampleEnd(true)
WDS.sampleResult.sampleEnd()

abc abc

unread,
Jul 28, 2021, 9:35:03 PM7/28/21
to jmeter-plugins
Hi Guys,

Can you help me please? I am having an issue not seeing WebDriver Sampler on JMeter 5.4.1.
I can see the plugins-webdriver-3.3.jar in folder lib/ext.
Thanks heaps

DT

unread,
Jul 29, 2021, 3:45:53 AM7/29/21
to jmeter-plugins
The file name should be jmeter-plugins-webdriver-3.3.jar and it doesn't come bundled with JMeter distribution, you will need to install the plugin using JMeter Plugins Manager, look for Selenium/WebDriver Support 

Untitled.png

In order to get the JMeter Plugins Manager download it, drop the .jar file to lib/ext folder of your JMeter installation and restart JMeter to pick it up
Reply all
Reply to author
Forward
0 new messages