Assigning VU\'s to multiple rows in data file
Does anyone have example or idea to code a test where a VU is perminantly assigned (x) number of rows (5) in a data file?
My application is a workflow app where data integrity must be kept the same for each VU.
Get first row from assigned rows.
VU1 Logs in the first user in data file - perform actions which include assigning the next 4 users from data file.
VU1 logs out the first user in data file.
Get next row from assigned rows.
VU1 picks up next row in data file
VU1 logs in second user in data file, does it's required actions and then logs out.
I have 100 VU's which in this example uses 500 rows in a data file for a load test and all of the VU's would be assigned 5 row's each.
Re: Assigning VU\'s to multiple rows in data file
A simple way may be to load your user information into an array(s) and do a get row command in a loop with the loop starting and ending numbers being calculated by the user #
So VU1 would start at 1 and loop through and populate your array(s) 5 times, VU2 would start at 6 and do the same, etc. etc.
You also might be able to modify the GlobalLogin function that is in the shared code thread here.
Those are my first thoughts.