Leveraging ForEach Controller in test plans

Another variation of Loop Controllers you might sometimes encounter is the ForEach controller. These are a specialized form of controllers that loop through the values of a set of related values. The number of iteration execution is dynamically defined by the resolution of the related variables as opposed to a fixed number specified in loop controllers. This makes ForEach Controllers a good fit for use cases where you need to perform repetitive executions of samplers based on some information from the target application.

How to do it…

In this recipe, we will cover how to use ForEach controllers paginating through the posts of our sample application. This is going to be very similar to what was covered ...

Get JMeter Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.