0
votes

I have an application where 100 devices are shown on home page. Each device has a separate device ID. Which I am extracting using JMeter Regular Expression extractor.

My scenario is if

User1 logs in then it should click on Device1. User2 logs in then it should click on Device2. User100 logs in then it should click on Device100.

In above case what should be the 'Match No' in JMeter Regular Expression extractor.

If am putting 0 its taking random device number for each user, where duplicate may happen. If am putting 1 its taking Device1 for all users.

Please let me know how can I handel this one to one mapping in JMeter Regular Expression extractor.

1

1 Answers

0
votes

In a CSV define all the variables like UserName,Pwd,DeviceIDs. This will work as a one to one mapping.

In "user properties" add sample_variables=UserName,Pwd,DeviceIDs and save and restart jmeter.

Once it is done, in test plan use 100 Vuser and 1 loop. Now, all 100 mapping will be assign to 100 vuser and will be executed once. Also, in csv data set config, mark Recycle on EOF as False and "Stop thread on EOF" as True.