At the beginning of my K6 test, I use my setup() function to ask for a token with the objective of use it on every VU. I don't want each VU using its own token, I want the same for every VU. That's OK, I can do it, but the problem comes when I need to refresh this token after 1 hour of test.
Again, I want to get a new token and use the same new token to every VU (I don't want that every VU get a new different token, I want the same for every VU). I am not able to do it with K6.
How can I face it? Is there a way for sharing variables between VUs? If not, which is the best way of doing it?
Thanks a lot.
I tried to start a new scenario after 1 hour that update the variable, but the VUs that are already running doesn't get that change.