I have the following scenario to emulate in jMeter:
100 users logging in once and doing search every 30 secs, with think time 5 secs.
How do I implement this?
Right now I have something like this:
ThreadGroup(100usrs)
+-- OnceOnlyController(LogIn)
+-- LoopControler(Search)
+-- Timer(5s)
But I have no idea how to do the 30 secs delay between the Search instances.
Is it even possible or do I have to use some workaround?
Any help appreciated.
If you want to have a fixed delay between the search samples whatever response time of the Sample is then Orkito solution is not the right one.
His solution will add a 30 s delay before the search sample, so if search takes more time than expected your request will run each 30s + Time taken by search sample.
If you want to have a fixed delay between the search samples whatever response time of the Sample then solution is described here:
It's in french but there are screenshots and translation service should do the job.
Another important point to note:
Note that timers are processed before each sampler in the scope in which they are found; if there are several timers in the same scope, all the timers will be processed before each sampler. Timers are only processed in conjunction with a sampler. A timer which is not in the same scope as a sampler will not be processed at all. To apply a timer to a single sampler, add the timer as a child element of the sampler. The timer will be applied before the sampler is executed. To apply a timer after a sampler, either add it to the next sampler, or add it as the child of a Test Action Sampler.