Re: Session token generation in JMeter with Run Thread Groups Consecutively option ON

Liliane et Robert Bourgault du Coudray <[email protected]> Sat, 28 Feb 2026 08:14:14 +0800
Newsgroups gmane.comp.jakarta.jmeter.user
Message-ID <CA+JYW9__tFV5-dMEO+mP80hNBB2O2oNY57Of3bzcxrVZmAggZw@mail.gmail.com>
--00000000000089d18f064bd73cc9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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=C3=A9vr. 2026 =C3=A0 23:47, Abhitosh Patil <abhitosh.qa@gmail.=
com> a
=C3=A9crit :

> 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
>

--00000000000089d18f064bd73cc9--