I'm creating JMeter tests for a service which context root may change depending on the host/environment. I'm trying to map the context root within the HTTP request path as follows:
I've created a user defined variable as follows:
contextRoot user variable definition
I'm running my tests using jmeter-gradle-plugin and that's how I'm passing the context root as a command line parameter:
-PcontextRoot=/my-context-root
But I'm always getting 404 responses because JMeter is not replacing the variable with the parameter value as expected.
Any clue about what I'm doing wrong? Thanks in advance.