Reputation: 11
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
Reputation: 168072
Option 1: via "Parameters" section:
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