I want to perform load testing, so need to access atleast 30 user names and password stored in excel or csv file, so how to do this using webdriver sampler in Jmeter.
1
votes
1 Answers
2
votes
- You can load a CSV file normally using CSV Data Set Config, JMeter will read the CSV file entries into JMeter Variables
In the WebDriver Sampler you have WDS.vars shorthand for JMeterVariables class instance so if you defined
username
andpassword
variables in the CSV Data Set Config you should be able to use them asWDS.vars.get('username')
andWDS.vars.get(password')
in the WebDriver Sampler correspondingly