You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ori Marco <or...@praxell.com> on 2008/06/18 12:43:00 UTC
sending parameters in command line
Hi
Can you give example(s) of sending parameters/variables in command line
and using in test plan,
e.g. I tried (and failed) sending -Jcardnumber=111111111111111
and using the parameters in test plan ( I tried '${__P(cardnumber)}')
( I tried adding cardnumber=22222222222222222 in properties files but it
didn't work as well)
Thanks
Ori Marko
Quality Assurance Engineer
Praxell Inc.
http://www.praxell.com <http://www.praxell.com>
RE: sending parameters in command line
Posted by Ori Marco <or...@praxell.com>.
It works, ignore this POST
Ori Marko
Quality Assurance Engineer
Praxell Inc.
Mobile: 0524-455-177
Office:03-6126060 Ext 612
Fax: 03-6126066
http://www.praxell.com
-----Original Message-----
From: Ori Marco [mailto:orim@praxell.com]
Sent: Wednesday, June 18, 2008 1:43 PM
To: JMeter Users List
Subject: sending parameters in command line
Hi
Can you give example(s) of sending parameters/variables in command line
and using in test plan,
e.g. I tried (and failed) sending -Jcardnumber=111111111111111
and using the parameters in test plan ( I tried '${__P(cardnumber)}')
( I tried adding cardnumber=22222222222222222 in properties files but it
didn't work as well)
Thanks
Ori Marko
Quality Assurance Engineer
Praxell Inc.
http://www.praxell.com <http://www.praxell.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: sending parameters in command line
Posted by sebb <se...@gmail.com>.
On 18/06/2008, Ori Marco <or...@praxell.com> wrote:
> Hi
>
>
>
> Can you give example(s) of sending parameters/variables in command line
> and using in test plan,
>
> e.g. I tried (and failed) sending -Jcardnumber=111111111111111
>
> and using the parameters in test plan ( I tried '${__P(cardnumber)}')
>
> ( I tried adding cardnumber=22222222222222222 in properties files but it
> didn't work as well)
>
All the above should work.
Where are you using the __P() function?
Functions are accepted in most places, but there are some fields which
won't accept them.
Try using it in a Java Request sampler to double-check.
Which version of JMeter/Java?
Also, you can use the new Workbench property display:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Property_Display
>
> Thanks
>
>
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
>
> http://www.praxell.com <http://www.praxell.com>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org