Book Image

JMeter Cookbook

By : Bayo Erinle
Book Image

JMeter Cookbook

By: Bayo Erinle

Overview of this book

Table of Contents (16 chapters)
JMeter Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using Loop Controller in test plans


Sometimes when testing applications, you might need to repeatedly execute a particular request or group of requests for a certain number of times over a given period. For example, simulating a user paging through the various posts for a blog, going through their monthly transaction activities on a financial website, or paging through the search results of matching products on an e-commerce website, and so on. For all these cases, Loop Controllers come to the rescue.

Loop Controllers are controllers that specialize in executing all their contained child samplers repeatedly for a given number of times. They are a perfect fit for the paging scenarios described previously.

How to do it…

In this recipe, we will cover how to use Loop Controllers to perform repeated tasks within a test plan. Perform the following steps:

  1. Launch JMeter.

  2. Click on the Templates… button (right next to the New button) on the toolbar.

  3. Select Recording from the Select Template drop-down and...