Interleave Controller This controller lets you increase the scope of your performance testing by modifying sequence in n number of ways so that you get to test the load on the server when applications are hitting request with different sequences. Interleave Controller makes alternative selections with the samplers under it. In case there are other controllers like Simple Controller kept under this block, interleave controller gives the privilege to select one sampler each from a container for each iteration. To explain it further, consider the below test plan. So, Jmeter will iterate alternatively between the controllers for each iteration. Therefore, sequence will be mentioned below Request1 -> Request3 -> Request 5 – Request2 -> Request4 -> Request6 Please see the below JMeter Results with Number of Threads = 2 and Loop Count = 2. In above example, Jmeter is Interleaving with next loop/iteration. There are settings in Interleave Controller that can make JMeter send alternate requests with every new thread. Please see the results below. This is useful in scenarios where you want sequential or concurrent load hitting servers with the different sequence of the request from the same machine.
|