shweta
shweta

Reputation: 21

How to load excel or csv file using java in Jmeter within Webdriver Sampler

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.

Upvotes: 1

Views: 1306

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

  1. You can load a CSV file normally using CSV Data Set Config, JMeter will read the CSV file entries into JMeter Variables
  2. In the WebDriver Sampler you have WDS.vars shorthand for JMeterVariables class instance so if you defined username and password variables in the CSV Data Set Config you should be able to use them as WDS.vars.get('username') and WDS.vars.get(password') in the WebDriver Sampler correspondingly

    enter image description here

Upvotes: 4

Related Questions