I'm working with a JMeter test script where I need to use some pre-defined values (such as client_id, client_secret, scope, etc.) different for each request, that change depending on the environment (dev, QA, staging, prod).
Currently, these values are hardcoded into the script, which means every time I switch environments, I have to manually update the script — which is error-prone and not scalable.
What I’m looking for: A clean, maintainable way to make my JMeter script environment-agnostic so I can run it in any environment just by changing a config file or parameter — without editing the .jmx script itself.
Example Use Case:
For dev, I might use:
client_id = dev-client-id
scope 1 = abc
scope 2 = def
...etc
For prod:
client_id = prod-client-id
scope 1 = xyz
scope 2 = vwx
like 50 of them
...etc