I am testing a web system where the Virtual User needs to input a ID Number, Name and Surname. In the Variable Manager I have imported a CSV File that contains these values.
If I run 5 Virtual Users on this system. These 5 Virtual Users will use rows 1 - 5 of the Variables. Which is what it must do.
But when you run it again those 5 Virtual Users still only use rows 1 - 5 of the Variables. (This happens both with using the For each Virtual User setting) This causes errors to occur, since those ID numbers are already in use. The Variables must update to use rows 6 - 10 when run again.
So the first run should be: rows 1 - 5; Second run, rows 6 - 10; Third run, rows 11 - 15, and so on.
How can I accomplish this? I have tried lots of different update policies in the Variable Manager, but achieved no success.
What do you mean by "when you run it again those 5 Virtual Users still only use rows 1 - 5 of the Variables"
If i understand with your settings, if you run a test with 5 concurrent users, the first 5 rows will be used which is expected. But if you run another test, the same 5 rows will be used except if you specify in your variable configuration to start from line 6.
Please provide more details i misunderstood your question.
On the first run, the 5 Virtual Users (5 of the same Virtual User) use values from the rows 1 - 5. If I run those 5 users again, those 5 users still use rows 1 - 5.
I need them to use 6 - 10 in the 2nd run and in the 3rd run 11 - 15 and continue on like that.
The problem I am experiencing is that the CSV Variable does not change/update the rows to unused ones on a new run.
I need a Virtual User to use 1 row per run and on the next run to use the next row of data.
Does this explain more?
I understand but between each run the users will still start from the beginning of your file. If you do not want that, you can manually edit your variable to start from another row.
Is there a way to dynamically make the variable start from a different row?