Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMeter, how to loop once for every sampler in an Interleave controller

Tags:

loops

jmeter

I'm using JMeter to automate some tests, and I have a pretty basic set up with a login and logoff piece and then a number of individual tests. What I want is for each test to log in, do its thing, and log out. Right now, all tests are in an interleave controller, with the login/out pieces being outside. If I have 10 tests I set the ThreadGroup to loop 10 times, and everything works as I expect.

However, we have 3 people writing their own individual tests that should go into the interleave controller, and the number of tests is growing. It's becoming a little troublesome to make sure that the number of ThreadGroup loops matches the number of tests by counting manually, and I'm looking for a way to tell JMeter to loop as many times as there are children in the Interleave controller. Any suggestions?

I wouldn't mind trying out a different structure as well, as long as it does what I want and doesn't force people to add the login/out pieces to every single test.

Thanks in advance.

like image 215
Egor Avatar asked Nov 14 '22 01:11

Egor


1 Answers

What about:

  • Isolating login / logout in their single Test Plan using Test Fragment

  • Each user would have his own Test Plan and use the previous one through an IncludeController

  • he would use ModuleController to call them in his tests

I am not sure this is the right answer, but to make it a better one please explain what you are trying to achieve accross the 3 people team

like image 97
UBIK LOAD PACK Avatar answered Dec 19 '22 13:12

UBIK LOAD PACK