Skip to main content
Removed superfluous variable definition
Source Link
kc2001
  • 5.2k
  • 5
  • 58
  • 103

I have some user defined variables:

SERVER_NAME myhost.com THE_HTTP_PROTOCOL HTTP USER_COUNT 1 LOOP_COUNT 2 

Then, I use a Recording Controller to capture my browser actions. Unfortunately, JMeter does more variable substitution than I'd like it to. For example, it substitutes ${LOOP_COUNT} into a web site name that contains "2", e.g., /host${LOOP_COUNT}/somePage. My favorite example of over-zealous variable substitution is my ${THE_${THE_HTTP_PROTOCOL}_PROTOCOL} Header Manager.

Is it possible to make the recording more selective about what variables can be used for substitution? For example, of the variables I've listed, I'd really only like SERVER_NAME to be substituted in.

I'm using JMeter 2.11.

I have some user defined variables:

SERVER_NAME myhost.com THE_HTTP_PROTOCOL HTTP USER_COUNT 1 LOOP_COUNT 2 

Then, I use a Recording Controller to capture my browser actions. Unfortunately, JMeter does more variable substitution than I'd like it to. For example, it substitutes ${LOOP_COUNT} into a web site name that contains "2", e.g., /host${LOOP_COUNT}/somePage. My favorite example of over-zealous variable substitution is my ${THE_${THE_HTTP_PROTOCOL}_PROTOCOL} Header Manager.

Is it possible to make the recording more selective about what variables can be used for substitution? For example, of the variables I've listed, I'd really only like SERVER_NAME to be substituted in.

I'm using JMeter 2.11.

I have some user defined variables:

SERVER_NAME myhost.com THE_HTTP_PROTOCOL HTTP LOOP_COUNT 2 

Then, I use a Recording Controller to capture my browser actions. Unfortunately, JMeter does more variable substitution than I'd like it to. For example, it substitutes ${LOOP_COUNT} into a web site name that contains "2", e.g., /host${LOOP_COUNT}/somePage. My favorite example of over-zealous variable substitution is my ${THE_${THE_HTTP_PROTOCOL}_PROTOCOL} Header Manager.

Is it possible to make the recording more selective about what variables can be used for substitution? For example, of the variables I've listed, I'd really only like SERVER_NAME to be substituted in.

I'm using JMeter 2.11.

Source Link
kc2001
  • 5.2k
  • 5
  • 58
  • 103

How to control variable substitution in JMeter?

I have some user defined variables:

SERVER_NAME myhost.com THE_HTTP_PROTOCOL HTTP USER_COUNT 1 LOOP_COUNT 2 

Then, I use a Recording Controller to capture my browser actions. Unfortunately, JMeter does more variable substitution than I'd like it to. For example, it substitutes ${LOOP_COUNT} into a web site name that contains "2", e.g., /host${LOOP_COUNT}/somePage. My favorite example of over-zealous variable substitution is my ${THE_${THE_HTTP_PROTOCOL}_PROTOCOL} Header Manager.

Is it possible to make the recording more selective about what variables can be used for substitution? For example, of the variables I've listed, I'd really only like SERVER_NAME to be substituted in.

I'm using JMeter 2.11.