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 realize this question is old, but if you are using the GUI and running tests manually, one very simple approach is to have a User Defined Variables element per environment, and just have one of these enabled when running the test. But I still don't understand why jmeter does not support setting UDV:s conditionally.
If your are looking to make your life easy in the GUI only, an easy way is to duplicate your User Defined Variables for each environment and disable all others except the environment you are executing your tests against, something like the following: