Giving differentdata to different virtual users
I have test scenario which adds a record to the database. I want to run this test scenarios for 5 virtual users for some time so that all the virtual users finishes at least one round of execution of the test. So totally thetest scriptis executed 5 times. How about the records added? It is adding only one record to the database. And there isno error message.
The module doesnot allow to add duplicate records. If i run the same script for 5 users, how the tool behaves?
Is it possible to give different data for different Vusers inthe same script?
If anybody knows about this please let me know.
Re: Giving differentdata to different virtual users
for sure its possible.
you have different possibilities:
1. generate random data for every virtual user (use the random data generation functions)
2. use a global data file (csv) where the data to be inserted is stored - every user reads the next row from the file and therefore gets a differnt row.
3. you can do something like a switch statement for the current userid (GetUserId()). So you insert different data for every user!