jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Passing user defined variables with the jmeter -q command line option
Date Thu, 29 May 2008 15:25:43 GMT
On 29/05/2008, Stuart Findlay <stuart.findlay@cp.net> wrote:
> apologies - __P only works for properties supplied on the command line -
> it's the __property function you need.
>

__P and __property work equally well.

__P is bascially just a shorthand for __property.

> http://jakarta.apache.org/jmeter/usermanual/functions.html#__property
>
>  in your example you would need ${__property(url)}
>
>
>
>
>  Stuart Findlay wrote:
>
> > Properties aren't variables so you need to get them using the __P function
> >
> > See
> http://jakarta.apache.org/jmeter/usermanual/functions.html#__P
> for details
> >
> > Marc Rennhard wrote:
> >
> > > Dear all,
> > >
> > > (see also
> https://issues.apache.org/bugzilla/show_bug.cgi?id=45009)
> > >
> > > I'm trying to use the jmeter -q command line option to pass a
> > > user.properties file (which contains user defined variables) to jmeter
> > > and access these properties within a testcase, but so have failed to use
> > > this correctly. I have tried this using the following:
> > >
> > > - In user.properties: url=www.google.com
> > >
> > > - In a sampler: ${url}
> > >
> > > But it didn't work.
> > >
> > > So my questions are the following:
> > >
> > > - Can I use this to pass "user defined variables" to jmeter that can be
> > > accessed within a testcase via ${var}?
> > >
> > > - How does this work in detail?
> > >
> > > - What format is required for user.properties?
> > >
> > > Thanks for any help,
> > > Marc
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message