Senthilkumar
Senthilkumar

Reputation: 11

How I can use the CSV data into Jmeter webdriver script?

I want to test my application with 5-10 different users, I wrote the webdriver script for login the application but i dunno how i can different concurrent user name using CSV data config in Jmeter. Kindly help me.

Upvotes: 0

Views: 1357

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

Option 1: via "Parameters" section:

WebDriver Parameters


Option 2: via JMeterVariables class (check out Using Java From Scripts article)

var vars = org.apache.jmeter.threads.JMeterContextService.getContext().getVariables()

var username = vars.get('username')
var password = vars.get('password')

See The WebDriver Sampler: Your Top 10 Questions Answered guide for WebDriver Sampler tips and tricks

Upvotes: 1

Related Questions