'Passing token from one threadgroup to other and handling the token expiry time

I have generated the auth token in setup threadgroup and have passed the auth token to other threadgroups using setProperty and property.But the token expiry time is 30mins. How do I setup the scenario in jmeter so that this can be handled



Solution 1:[1]

  1. Convert setUp Thread Group to "normal" Thread Group
  2. Add a Flow Control Action sampler which will introduce delay of, say, 29 minutes and add more loops to the Thread Group

This way each 29 minutes JMeter will request for the new token and update the property holding the token with the new value.

Also be aware of Inter-Thread Communication Plugin, this way you will not only be able to pass objects between different threads but implement custom logic like the other thread will wait until the object is present in the FIFO queue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T