| || |
Unique Parameters values per vuser
I'm relatively new to LoadRunner and am struggling a little bit with how to define my parameter setup to ensure unique values are used.
Here's an example that is similar to my situation.
Let's say we have a web app that provides the ability for a customer to manage their orders. For our test we are setting up numerous customers that all have some predefined orders in the system. Our test data is set up so each customer has the same order numbers available. Essentially we created a customer, then copied this customer in the system many times.
So we have something like this:
Given this, I've created a file with with values for each customer. I've created a second file listing available orders. Using these files to feed parameter. Every customer has their own orders, but all of these orders share the same Order number, but the orders are unique to each customer.
So the script will have this flow:
Login with Unique customer
Delete Unique Order (using order number)
Each virtual user will grab a unique customer name to use, this works fine. What I want now is that within each virtual user, I want each iteration to use a unique Order number, but NOT a unique order number across virtual users.
So once Virtual user 1 logs in with Customer A and uses Order1, this virtual user should never user Order1 again on subsequent iterations, however when Virtual user 2 logs in with Customer B, the first iteration should use Order1 then order 2, etc.
When setting up the parameters, it wasn't clear to me if there was a way to force a unique value for my order number that only needed to be unique within the given virtual user, not across virtual users.
Hopefully this makes some sense. Can this be done within the Parameter list setup, or are we only allowed to enforce unique values across virtual users?
Re: Unique Parameters values per vuser
Sequential should accomplish what you need.
If you need further assistance, please read and follow this link: