I have several JMeter test plans which should be executed in different environments, say Dev, Test, UAT, Live. In each test plan I would like to have a simple way to specify whi
I have not used myself, but this jmeter-pluing may help you. Here is snippet from documentation
Parameterized Controller since 0.1.0
When your JMeter test plan tree becomes like a sequoia or a banyan,
you start feeling yourself like a monkey in a jungle, jumping from
branch to branch, trying to support this important test consistent.
You really need some way to have parameterized subroutines, to reuse
parts of test plan like regular programming language functions and
procedures.
JMeter have out-of-box Module controller, but it has no parameters
to pass to, so if you need to call repeating sequence of the same
action with different parameters, your reflection in a mirror starts
morphing into monkey. Parameterized Controller helps you stay human
and sane.