where can I see the WebDriver Sampler execution results in Jmeter?

1,523 views
Skip to first unread message

ilakk...@gmail.com

unread,
Mar 5, 2014, 2:15:16 AM3/5/14
to jmeter-...@googlegroups.com
Hi All,
 
If any of you has a idea, where can we see or under which listener we can see the WebDriver Sampler return result after the execution.
 
Many Thanks,
Ilakkuvan P

gli...@gmail.com

unread,
Mar 5, 2014, 2:57:46 AM3/5/14
to jmeter-...@googlegroups.com, ilakk...@gmail.com
In any suitable Listener, the most informative (and the most memory consuming) is View Results Tree

You can also print something into jmeter.log via WDS.log command or even take a screenshot as WDS.browser.getScreenshotAs

See Using Selenium with JMeter's WebDriver Sampler guide for more details. 

Hope this helps

ilakk...@gmail.com

unread,
Mar 10, 2014, 4:16:31 AM3/10/14
to jmeter-...@googlegroups.com, ilakk...@gmail.com, gli...@gmail.com
Hi All,

I kept all the request with start and End time under jp@gc - Web Driver Sampler
After I run this script, I could only on sampler in Summary Report or View Results in Table.

I want to know each of the https request's start and End Time. for eg(landing page, login page, home page, Search page, results page and logout page)
So Where can we each requests result in web Driver samepler used case.

Thanks and Regards,
Ilakkuvan P

gli...@gmail.com

unread,
Mar 11, 2014, 9:36:41 AM3/11/14
to jmeter-...@googlegroups.com, ilakk...@gmail.com, gli...@gmail.com
As per the guide, you need to have multiple WebDriver Samplers. 

Like 

  • Login sampler
    • WDS.sampleResult.sampleStart()
    • your login-related code here
    • WDS.sampleResult.sampleEnd()
  • Home Page Sampler
    • WDS.sampleResult.sampleStart()
    • your home page related code here 
    • WDS.sampleResult.sampleEnd()
  • Search page sampler
    • WDS.sampleResult.sampleStart()
    • your search related code here
    • WDS.sampleResult.sampleEnd()
  • etc
Browser state will be shared across the samplers, you'll need to start your browser only once, in "Login" sampler and at the end, at "Logout" page you'll need to call WDS.browser.quit()


If you need to get the whole login->home->search -> etc. Timing you'll need to wrap everything in Transaction Controller

Hope this helps,

Dmitri. 

ilakk...@gmail.com

unread,
Mar 26, 2014, 12:30:46 AM3/26/14
to jmeter-...@googlegroups.com, ilakk...@gmail.com, gli...@gmail.com
Thanks you for your information.
I found the way.....it will be useful to all

WDS.sampleResult.sampleStart()
WDS.sampleResult.getLatency()
WDS.browser.get('https://ebay.com')
WDS.sampleResult.latencyEnd()
WDS.sampleResult.sampleEnd()
Reply all
Reply to author
Forward
0 new messages