O'Reilly logo

JMeter Cookbook by Bayo Erinle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Building Robust Test Plans with Controllers

In this chapter, we will cover the following recipes:

  • Using Transaction Controller in test plans
  • Using Loop Controller in test plans
  • Leveraging ForEach Controller in test plans
  • Using Interleave and Random Controllers in test plans
  • Using Runtime Controller in test plans

Introduction

Whether you are recording scripts or manually writing them, you will need to make use of controllers to aid the logic within your test plan. Logic controllers help determine the order in which samplers are processed in your test plans. Controllers are direct child elements of a Thread Group and contain one or more samplers. There are various controllers ranging from logic (random, if, switch, and so on) to looping (while, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required