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, ...

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.