I have two scripts in a scenario, both scripts runs for 200 users for 2 hrs (total 400 users in the scenario)…
Script A, has login and logout in each iteration
Script B, has login once (in the beginning of the test) and then continue in iterations, and logout at the end of the test
Each script has 200 unique Login ID in their parameter file, and I want to ensure that I use a unique Login ID for each user…so I set the first script (Script A) to Sequential (since it login and logout in each iteration, and I have 200 unique Login ID in the parameter file and I am running it with 200 users, I thought it will use a unique Login ID in each iteration)…
And I set the second script (Script B) to a unique in each iteration (since it login once and logout at the end of the test, and I have 200 unique Login ID and I am running it with 200 users)
But the problem is after the test for 1 hour, the developers notice that Script A using the same Login ID couple of times…and I got the following error message in Script B (no sufficient number of Unique Login IDs)
What I am doing wrong? Thanks in advance for your help
I would need to go back and read your post again, but my initial reaction is that you want to set script A such that the Login ID is updated only once. That is, each vuser gets a unique a ID at the beginning of the test, and keeps that one for the duration of the test.
If I understand you correctly, you have:
- Script A, running 200 VUs, logging in and out per iteration, using parameter file A with 200 records
- Script B, running 200 VUs, logging in once, iterating, then signing out at the end of the scenario, using Parameter file B with 200 records.
If this is the case, and you want a unique login id for each VU, then Unique/Once would be the way to go as each of the 400 VUs would get one login id each.
It can be possible script A using same user couple of times...as you have you have selected sequential for next row option .. when out of values it will start from first row itself. this simply means all the 200 values are used in 1 hr of test by script A.