We are using Jmeter 5.1.1
v to perform load testing, Our scenario is get 25 tokens from Setup thread group
(Threads set to 25 with rampup 25 secs under SetUp Thread group
), then having a normal Thread group
which contains HTTP Sampler
and in this Sampler need to pass those 25 tokens for each 1 thread hence this Thread Group contains configuration of 25 Threads with 25 Secs.
However when Run the test, 25 tokens been generated but only the last 25th token used for all threads (using the 25th token). Trying to get for each Thread should get one token value, if 2nd thread then 2nd token should be used.
Below is the Structure:
TestPlan
--SetUp Thread Group - 25 Threads, 25 Secs
---HTTP Sampler - Gets the Token here using RegEx and Set the value as Property using Beanshell Assertion
O/P: Got 25 tokens generated, and set in the property value
--Thread Group - 25 Threads, 25 Secs
---HTTP Sampler - Get Token value as property
O/P: Only the 25th token been used for all 25 threads
EDIT
Tried answer and got error: