Thanks Dimitri.

But it doesn't work because Run Thread Groups Consecutively option is ON.

On Mon, 2 Mar, 2026, 20:38 Dmitri T, <[email protected]> wrote:

> Add another Thread Group which will run 1 request every 55 minutes to
> refresh the token. Once you have the new token you can use i.e.
> setProperty()<
> https://jmeter.apache.org/usermanual/functions.html#__setProperty>
> function to write the new value into a JMeter property. In other Thread
> Groups use __P() function<
> https://jmeter.apache.org/usermanual/functions.html#__P> to read the
> token.
>
> More information: Using JMeter Variables With Multiple Thread Groups
> ________________________________
> From: Abhitosh Patil <[email protected]>
> Sent: Saturday, February 28, 2026 7:34 PM
> To: JMeter Users List <[email protected]>
> Subject: Re: Session token generation in JMeter with Run Thread Groups
> Consecutively option ON
>
> I tried this option but no luck.
>
> On Sat, Feb 28, 2026 at 9:28 AM Abhitosh Patil <[email protected]>
> wrote:
>
> > Thanks @Lilian
> >
> > I'll try this.
> >
> > On Sat, 28 Feb, 2026, 05:44 Liliane et Robert Bourgault du Coudray, <
> > [email protected]> wrote:
> >
> >> I would put the SessionRefresh token code as a TestFragment and call
> this
> >> fragment from each ThreadGroup with a Module controller placed at the
> >> beginning of the TGs. In the TestFragment you can put an "If Controller"
> >> to
> >> check the elapsed time from the last refresh (save the time as a
> property
> >> so it can be seen by every threadgroup) with a margin of security (e.g.,
> >> refresh the token every 50 minutes instead of 55 minutes).
> >>
> >> Le ven. 27 févr. 2026 à 23:47, Abhitosh Patil <[email protected]> a
> >> écrit :
> >>
> >> > Hi,
> >> >
> >> > I have 4 thread groups in my JMeter script.
> >> > Run Thread Groups Consecutively (One at a time) option is ON.
> >> >
> >> > Now I want to add 1 more thread group at the top for session token
> >> > generation. It should generate fresh session token after every 55
> >> minutes.
> >> >
> >> > I can't uncheck Run Thread Groups Consecutively option.
> >> >
> >> > How can I handle this?
> >> >
> >> > Thanks in advance.
> >> >
> >> > Abhitosh Patil
> >> >
> >>
> >
>

Reply via email to