Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C4E2C02D for ; Wed, 12 Mar 2014 16:04:15 +0000 (UTC) Received: (qmail 43774 invoked by uid 500); 12 Mar 2014 16:04:09 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 43414 invoked by uid 500); 12 Mar 2014 16:04:09 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 43111 invoked by uid 99); 12 Mar 2014 16:04:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2014 16:04:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shmulikk@gmail.com designates 209.85.220.178 as permitted sender) Received: from [209.85.220.178] (HELO mail-vc0-f178.google.com) (209.85.220.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2014 16:04:04 +0000 Received: by mail-vc0-f178.google.com with SMTP id im17so3349822vcb.23 for ; Wed, 12 Mar 2014 09:03:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=eOPG9ONZ2KARsduIcFuvrnXgOG0aim1SQ6nN4F6JitI=; b=ND7339DfksmjvaXHKZRVHJwW1ZgDi+2a4wX5/Xe98Sbqg/irvvO63u5bLCfe/ft5iQ Et2ChUyzz/2hkrOyhP0pisjeMjpq1upJK4qjsqJ33NMPiGl4pywOsmScKj5UtSHpzrQj bjeuZYgMuTPTtrcSn0yMQkx4bqW1jwXzpbnB5EbCDvnZY27IsDFkx0feTck5n1Ri/q31 oxdpk+jd5FaO5aFYDJAOIU50AYpWBI+m1oPNHGII4pFRt8mQikm5IPmMXHqi0CDwUS19 Pn9Nxw4S3ODjsySNDYdLL28rjRelbe901viC3CxWZkIToJ99ZSGNqs1HwTWeCKoNgABf N5tg== MIME-Version: 1.0 X-Received: by 10.52.107.35 with SMTP id gz3mr31212112vdb.8.1394640224056; Wed, 12 Mar 2014 09:03:44 -0700 (PDT) Received: by 10.220.174.16 with HTTP; Wed, 12 Mar 2014 09:03:43 -0700 (PDT) In-Reply-To: <001201cf3d34$4fa08f70$eee1ae50$@gmail.com> References: <6B2F9B5AA9F9734BB6F4339DB3F0FD3C2F432C5D@VACH-MX1> <001201cf3d34$4fa08f70$eee1ae50$@gmail.com> Date: Wed, 12 Mar 2014 18:03:43 +0200 Message-ID: Subject: Re: How to control variable substitution in JMeter? From: Shmuel Krakower To: JMeter Users List Content-Type: multipart/alternative; boundary=bcaec547c6bf24fb6a04f46afbf9 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec547c6bf24fb6a04f46afbf9 Content-Type: text/plain; charset=UTF-8 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 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: Keith.Cassell@engilitycorp.com [mailto: > Keith.Cassell@engilitycorp.com] > Sent: Tuesday, March 11, 2014 9:09 AM > To: user@jmeter.apache.org > 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: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > > --bcaec547c6bf24fb6a04f46afbf9--