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 Transaction Controller in test plans


In general, you can think of controllers as container elements that group or hold numerous samplers. Transaction controllers are a specialized form of controllers that generate an additional sample that measures the overall time taken to perform its nested samplers. For instance, in most typical web applications, it takes a number of requests to provide all the data needed for a page to render correctly. This could involve several AJAX calls to the backend server or external web services. For such circumstances, you might be interested in how long it takes for the combined set of requests to execute, and not just for individual ones.

How to do it…

In this recipe, we will cover how to use Transaction Controllers to measure the combined time taken for a series of requests that satisfy the operation. 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...