I need to source values for substitution from a csv file in the following manner :-
For Every User:-
UserID,
Password,
OrganizationId,
List of departments applicable for each user under organization id.
DeptId, DeptName, DeptDesc
List of employees applicable for the Organization.
EmpId, EmpName, DeptId
I need to substitute the list of parameters into a soap request.
I have tested by creating csv file for list of user's for the credentials, but wanted to know how to handle a list of values for each user. How can we define the variable and choose the value change policy ?
I'm not sure to fully understand your goal. The change policy of your variable will depend on how you designed your script.
Basically, if your transactions are under Actions container, you should use "on each iteration" change policy.
That means that on each iteration a new row of your CSV file will be used. If your scope is "Global/Sequential" then your users will get from the controller the next available row.
I hope that those information will help you.
@Nouredine, I want to run a 10 user constant load test. For each user i need the data mentioned above. The user credentials can fit in a row but the data which i need to send in SOAP request for each user are collections or list of data and not individual ones.
{
userid: "abc",
password: "123",
orgid: 111,
departments:[
{
DeptId: "D101",
DeptName: "HR",
DeptDesc: "Human Resource"
},
{
DeptId: "D102",
DeptName: "R&D",
DeptDesc: "Research & Dev"
}
],
employees: [
{
EmpId: "E101",
EmpName: "Hansel",
DeptId: "D101"
},
{
EmpId: "E102",
EmpName: "Gretel",
DeptId: "D102"
}
]
}
Please let me know if you need more details.