Hi are your customer credentials tied in anyway to your user credentials (i.e. do you need user 1 to say deal with cust1, cust2 only or user1 can deal with any customer record?) If the answer is no , then something like this probably works +Thread Group ++User Credentials CSV Data Set Config - Sharing mode = All Threads , Say U1, U2, U3, U4 ++Loop Controller (or while controller) - e.g. 2 times +++ Customer Actions CSV Data Set Config - Sharing mode = All Threads say C1,C2,C3,C4,C5, C6,C7,C8 +++ Sampler that can use variable from both CSV data set variables
if you run this with say 2 threads you should see something like U1, C1 U1, C2 U2, C3 U2, C4 U3, C5 U3, C6 U4, C7 U4, C8 But you cannot definitively say U3 will always read C5 and C6 it depends on when the sampler on each thread finishes. If they are dependent or if I have misread your need then please elaborate. I've done things like pre -process files so that I get something like U1,C1~C2~C3 (i.e. use ~ as a second delimiter ) U2,C4~C5~C6 ... So that Each users data is read as a single row in JMeter , then write some code that looks at the second variable and splits it up and sets it up into memory so that it can be iterated over (basically append _1, _2 to the variable name so that the forEach controller can iterate over it). CSVRead can also be used. regards deepak On Tue, Jun 14, 2016 at 9:31 AM, Geoff Endris < [email protected]> wrote: > I have a JMeter script that needs multiple simultaneous users to log in, > then each user loops through a number of customer setup actions. Each > setup > action requires a separate set of input values (customer id, customer > email, > customer phone). Note, these are different from the login credentials. > The > customer setup values cannot be re-used within a thread or across threads. > > > > My script has a single thread group and within the thread group, I have a > loop for that user to enter multiple customer setups. > > > > Here is my question: I know I can use the CSV Data Set to give each thread > group (user) its own login credentials. How do I set up and access and > external file to get the customer credentials (ID, email, phone) for the > loop that sets up customers within a thread? In other words, I need to > cycle through a set of customer credentials WITHIN a single thread group. > > > > I don't think I can use a CSV Data Set for this because those are > controlled > by threads. Can I set up a separate CSV Data Set for the looping within a > single thread? > > > > Can I append a loop counter onto a variable name and have all looped values > for a thread in the single CSV file after the login credentials? (login, > password, custID1, custemail1, custphon1, custID2, custemail2, custphon2, > etc) > > > > Is this something I would use CSVRead function for? Set up a second CSV > file with unique customer credentials on each line, then let all thread > loops just access the next line for user creds? > > > > Is there another way to do this? > > > > Thanks. > > > > Geoff Endris > >
