I am using jmeter. I tried two options to pass the token( which needs to be run just once during the performance test) from one request to another. option 1 -I created two thread groups and used intercommunication thread post processor and thread process as you can see from the screenshot. The second concurrency thread group is just run once which needs to run at 1 rps for certain time initially( later this would be modified)
Option-2- I have one thread group which has a token request as once in a controller and post API request but the token request is not just run once it's been run multiple times during the test. please see the attached screenshot.
I have not tried the option of using a preprocessor and setting the token as property and getting the property value. is this a viable option or am I missing anything from option 1 why the second thread in option 1 is not running more than once?
option 1 test plan: https://i.stack.imgur.com/9Se4l.png result tree of option 1 -where post request is run once- https://i.stack.imgur.com/ESx3J.png once in a controller option 2: https://i.stack.imgur.com/MROok.png