Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do multiple user logins with different inputs in jMeter?

Tags:

jmeter

I have multiple login ids. I want to simulate a user Login. I first tried picking a first row login details and also tried it by those in a loop controller, but its not picking row by row.

How to assign for each user to pick every row, through threads with multi login.

like image 309
user2876333 Avatar asked Jan 13 '23 03:01

user2876333


1 Answers

Yes i have done this simply in three steps as,

1.Create a text file (or csv file) containing the user names and passwords, separated by commas. Put this in the same directory as your test plan as,

enter image description here

2.Add a CSV DataSet configuration element to the test plan. Name the variables USER and PASS. also,Add a path to the filename in that element (I made sure to check the file path) as,

enter image description here

3.Replace the login name with ${USER} and the password with ${PASS} on the Log in (HTTP Request) Sampler as, enter image description here

Hope this will help you,

like image 72
Chetan Avatar answered Feb 08 '23 14:02

Chetan