0
votes

I have a JMeter Test Plan composed by 2 thread groups that runs consecutively:

Thread Group 1: See image

  • Login transaction (gets user token saved as property)

Thread Group 2: API requests See image

  • Transaction 1

  • Transaction 2

  • ...

I want to execute Thread Group 1 (get user token) every 30 seconds within 60 seconds (2 times each global execution).

Do you know how to do it?

If I use a constant timer in Thread Group 1, it waits 30 seconds to start the thread and I don't want that behavior.

Thanks in advance.

1

1 Answers

0
votes

JMeter Timers are executed before each Sampler in their Scope so you have the following options:

  1. Add Flow Control Action sampler after the logintokensso request and configure it to "sleep" for 30 seconds:

    enter image description here

  2. Or if you have to use the timer for any reason you can still go for the Flow Control Action sampler but with zero delay and make your Constant Timer a child of this Flow Control Action sampler:

    enter image description here