How do I parametrize csv data values inside of Web Driver Sampler?

1,066 views
Skip to first unread message

ilakk...@gmail.com

unread,
Mar 12, 2014, 10:38:13 AM3/12/14
to jmeter-...@googlegroups.com
Hi All,

I want tp parametrize the user name and password fields values in Web Driver Sample. unable to do by this way

username.sendKeys(${userName})
password.sendKeys(${pwd})

So what is the way to pass the variable values in side of sendKeys in Web driver sampler


Thanks and Regards,
Ilakkuvan P

gli...@gmail.com

unread,
Mar 12, 2014, 1:01:51 PM3/12/14
to jmeter-...@googlegroups.com, ilakk...@gmail.com
Have you seen "Parameters" input field at the top of WebDriver Sampler GUI? 


Parameters - is optional and allows the reader to inject variables used in the script section.
WDS.parameters - is the value provided in the Parameters field (above).
WDS.args - is an array of the strings provided in the Parameters field, but split by the space ' ' character. This allows the scripter to provide a number of strings as input and access each one by position.

Also something similar has been discussed under Using Selenium with JMeter's WebDriver Sampler

Hope this helps,

D. 

vdab...@gmail.com

unread,
Mar 13, 2014, 5:03:56 AM3/13/14
to jmeter-...@googlegroups.com, ilakk...@gmail.com, gli...@gmail.com
Hi,

Look at this post "How to user parameterisation in selenium webdriver and jmeter integration"
https://groups.google.com/forum/#!topic/jmeter-plugins/Xz03TJ_uBGU

I explained how to send parameter with space or how to create an sub result to "export" variable from the web driver sampler.

Regards.

Vincent D.
Reply all
Reply to author
Forward
0 new messages