JMeter If Controller
You may ask yourself:
- How can I script Thread groups with dynamic behavior?
- How to use the JMeter If Controller to leverage conditional behavior?
Good News! We're going to show you the JMeter If Controller by introducing you to conditional statements, advanced conditions and performance considerations.
Use-Cases
The If Controller works great when you need to execute some elements of the Thread Group based on a given state. Let me give you meaningful examples:
- If
the shopping cart is empty, then executeAdd a New Product to Cart, - If
Account balance is below Zero, thenIssue a wire transfer to rebalance the Account.
Depending on a given condition, then a given action is taken. That's it!