ankitaT
15 years agoContributor
Can we use separate datasource row for each thread
Hi,
I wonder if we can use a separete datasource row for each thread in a load test.
To make it more clear, let say i need 5 virtual users (or 5 threads)
Each thread should be initialized with a unique value and should increment it as the test runs increase.
The initial values are provided in a datasource.
My datasource contains 5 rows (for 5 threads)
A100
B200
C500
Z400
R400
now i want thread 1 to access row 1 and value as A100 and as the test case runs increase, i want it to increment like A101, A102 and so on
for thread 2, i want it to access row 2, i.e. B200 and increment it in the successive runs as B201, B202...
I can manage the increment part.
Please let me know if it is feasible to access the specific datasource row for each thread.
Thanks in advance.
I wonder if we can use a separete datasource row for each thread in a load test.

To make it more clear, let say i need 5 virtual users (or 5 threads)
Each thread should be initialized with a unique value and should increment it as the test runs increase.
The initial values are provided in a datasource.
My datasource contains 5 rows (for 5 threads)
A100
B200
C500
Z400
R400
now i want thread 1 to access row 1 and value as A100 and as the test case runs increase, i want it to increment like A101, A102 and so on
for thread 2, i want it to access row 2, i.e. B200 and increment it in the successive runs as B201, B202...
I can manage the increment part.
Please let me know if it is feasible to access the specific datasource row for each thread.
Thanks in advance.