Thanks for the workaround idea, Shmuel! I added a User Defined Variables element to my workbench that defined:
THE_HTTP_PROTOCOL someStringThatShouldNeverBeMatched USER_COUNT someStringThatShouldNeverBeMatched Then, when I recorded, I did not get the unwanted variable substitutions. Nonetheless, I maintain that the current substitution behavior is incorrect and should be modified. I'll submit an issue, and if I find the time, I'll submit some code. Cheers, Keith > -----Original Message----- > From: Shmuel Krakower [mailto:[email protected]] > Sent: Wednesday, March 12, 2014 12:04 PM > To: JMeter Users List > Subject: Re: How to control variable substitution in JMeter? > > Why making this complex? Just have a dedicated UDV element for such > correlation/replacement, while during recordings, disable the others > you don't wanna use. > > Shmuel Krakower. > www.Beatsoo.org - re-use your jmeter scripts for application > performance monitoring from worldwide locations for free. > > > On Tue, Mar 11, 2014 at 4:15 PM, Robin D. Wilson <[email protected]> > wrote: > > > I've noticed this too. Sounds like a feature request. > > > > Basically, some way to designate which variables can be used for > > substitution when using the recording controller. Perhaps just a > list. > > > > -- > > Robin D. Wilson > > Sr. Director of Web Development > > KingsIsle Entertainment, Inc. > > VOICE: 512-777-1861 > > http://www.kingsisle.com > > > > -----Original Message----- > > From: [email protected] [mailto: > > [email protected]] > > Sent: Tuesday, March 11, 2014 9:09 AM > > To: [email protected] > > Subject: 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. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
