jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Kazakov <yugene1...@gmail.com>
Subject Re: Asp.net client id Template name - How to Parameterize Name field
Date Wed, 21 Nov 2012 05:31:21 GMT
BTW, for parameterize some string you may use that function
http://yugene1986.blogspot.ru/2012/11/replace-function-for-jmeter.html


On 17 November 2012 03:03, Gavin Maselino <gavinmaselino@hotmail.com> wrote:

>
>
>
>
> Your solution for the RegEx worked very well. Thank you for your help.
>
> > Date: Wed, 14 Nov 2012 11:06:36 -0300
> > Subject: Re: Asp.net client id Template name - How to Parameterize Name
> field
> > From: flaviocysne@gmail.com
> > To: user@jmeter.apache.org
> >
> > Add a Regular Expression Extractor in a prior sampler with
> > Template\$([0-9a-zA-Z\$]+)\$login\$UserName as regex. Use the given
> > reference name as a variable in the parameter name field, like this:
> > Template%26${variableName}%26login%26Username
> >
> > Remember to let Encode checkbox field unchecked.
> > %26 is the ascii hexadecimal representation of $ character
> >
> >
> > 2012/11/14 Gavin Maselino <gavinmaselino@hotmail.com>
> >
> > >  Hi
> > >
> > > On one of my servers, when I record the JMeter script the user name
> client
> > > ID (as an example) is Template$ctl17$ctl00$login$UserName. On another
> > > server  it is Template$ctl15$ctl00$login$UserName.
> > >
> > > So the same test cannot be re-run on a different server without making
> > > script changes to the Parameter Name field.
> > >
> > > What I want to be able to do is somehow parameterise the Name field so
> > > that it will work on either server. Just to re-iterate it is the
> paramter
> > > name field, not the value field. I have attached a screenshot also.
> > >
> > > Can anyone advise as I have been racking my brains and cannot see an
> > > answer?
> > >
> > > Many thanks in advance
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > > For additional commands, e-mail: user-help@jmeter.apache.org
> > >
>
>



-- 
Thank you,
Eugene Kazakov

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message