Thanks, I am running from command-line and problem is variable in .jmx
test description is not replaced.
I am passing it with -Jname=value.

Is variable supposed to be Dollar, Curly brace, two underscores
capital P brace then variable name and closing braces?
I can't find anything about variables in Jmeter manual.

On Tue, May 6, 2008 at 1:33 AM, Steve Kapinos
<[EMAIL PROTECTED]> wrote:
>
>  Forget ant until your actual jmeter test plan works properly on its own.
>
>  run jmeter from the command line
>
>  jmeter -n -t testplan.jmx -Jpropertyname=value
>
>  use -D if passing system properties vs local properties (-J)
>
>  If the results are not as intended, use the debug sampler and a listener
>
>
>  -Steve
>
>  -----Original Message-----
>  From: Joe Kramer [mailto:[EMAIL PROTECTED]
>
>
> Sent: Mon 5/5/2008 11:18 AM
>  To: JMeter Users List
>  Subject: Re: Jmeter Ant task: how to test on multiple site with HTTP Request 
> Defaults?
>
>  Sorry for silly questions -
>
>  I can run ant only with -D. Passing -J results in ant saying "invalid 
> argument".
>  Also jmeter never create the log. at least not in where it's
>  installed. How do I make it do it?
>
>  Thanks.
>
>  On Tue, May 6, 2008 at 1:02 AM, sebb <[EMAIL PROTECTED]> wrote:
>  > http://jakarta.apache.org/jmeter/usermanual/get-started.html#override
>  >
>  >  2008/5/5 Joe Kramer <[EMAIL PROTECTED]>:
>  >
>  >
>  > > How do I override property when I run it from command-line?
>  >  >
>  >  >
>  >  >
>  >  >  On Tue, May 6, 2008 at 12:40 AM, Steve Kapinos
>  >  >  <[EMAIL PROTECTED]> wrote:
>  >  >  > Does the same testplan work if you execute it from command line using
>  >  >  >  the commandline switches to override the property?  If not, you 
> could
>  >  >  >  simply have a typo like an extra space, case mismatch, etc.
>  >  >  >
>  >  >  >  I think you see an error in the jmeter.log if it sees what it 
> considers
>  >  >  >  an invalid URL (for instance if the property were not substituted 
> right
>  >  >  >  and didn't look like a hostname).  Check there to see what is used.
>  >  >  >  Attach a debug sampler to the http request see what your property 
> values
>  >  >  >  really are.
>  >  >  >
>  >  >  >  Make your testplan work as intended.. Then toss the jmeter-ant 
> stuff on
>  >  >  >  top.
>  >  >  >
>  >  >  >  -Steve
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  -----Original Message-----
>  >  >  >  From: Joe Kramer [mailto:[EMAIL PROTECTED]
>  >  >  >  Sent: Monday, May 05, 2008 10:28 AM
>  >  >  >  To: JMeter Users List
>  >  >  >  Subject: Re: Jmeter Ant task: how to test on multiple site with HTTP
>  >  >  >  Request Defaults?
>  >  >  >
>  >  >  >  I insert ${__P(propertyname)} into "host field in Jmeter UI and then
>  >  >  >  save the test file.
>  >  >  >  Then run it with jmeter-ant and pass the parameter <property
>  >  >  >  name="propertyname" value="localhost"/> In test results Jmeter says
>  >  >  >  "Connection refused" so it probably tries to connect to address 
> "${(..."
>  >  >  >  and variable is not replaced.
>  >  >  >
>  >  >  >  What am I doing wrong? Can I make it work?
>  >  >  >
>  >  >  >  On Tue, Nov 20, 2007 at 7:31 PM, sebb <[EMAIL PROTECTED]> wrote:
>  >  >  >  > Just use the appropriate property in the test element.
>  >  >  >  >
>  >  >  >  >  e.g. ${__P(propertyname)}
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  On 20/11/2007, Joe Kramer <[EMAIL PROTECTED]> wrote:
>  >  >  >  >  > I mean parameter for Jmeter to set HTTP request defaults.
>  >  >  >  >  > Documentation mentions only this:
>  >  >  >  >  >
>  >  >  >  >  > <jmeter
>  >  >  >  >  >   ... >
>  >  >  >  >  >       <property name="request.threads" value="1"/>
>  >  >  >  >  >       <property name="request.loop" value="10"/>
>  >  >  >  >  > </jmeter>
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  > On 11/19/07, sebb <[EMAIL PROTECTED]> wrote:
>  >  >  >  >  > > For
>  >  >  >  >  > >
>  >  >  >  >  > >             -Dtest.host=something
>  >  >  >  >  > >
>  >  >  >  >  > > use
>  >  >  >  >  > >
>  >  >  >  >  > >        <property name="test.host" value="something"/>
>  >  >  >  >  > >
>  >  >  >  >  > >
>  >  >  >  >  > > On 19/11/2007, Joe Kramer <[EMAIL PROTECTED]> wrote:
>  >  >  >  >  > > > I did read that, but what is the property for "HTTP sampler
>  >  >  >  > request  > > > defaults host" ? request.host?
>  >  >  >  >  > > >
>  >  >  >  >  > > > On 11/19/07, sebb <[EMAIL PROTECTED]> wrote:
>  >  >  >  >  > > > > From the JMeter Ant doc in extras/ directory:
>  >  >  >  >  > > > >
>  >  >  >  >  > > > > "You can override JMeter properties (instead of 
> modifying  >
>  >  >  >  > > > > jmeter.properties) like this:
>  >  >  >  >  > > > >
>  >  >  >  >  > > > > <jmeter
>  >  >  >  >  > > > >     jmeterhome="c:\jakarta-jmeter-1.8.1"
>  >  >  >  >  > > > >     testplan="${basedir}/loadtests/JMeterLoadTest.jmx"
>  >  >  >  >  > > > >     resultlog="${basedir}/loadtests/JMeterResults.jtl">
>  >  >  >  >  > > > >         <property name="request.threads" value="1"/>
>  >  >  >  >  > > > >         <property name="request.loop" value="10"/>
>  >  >  >  >  > > > > </jmeter>
>  >  >  >  >  > > > > "
>  >  >  >  >  > > > >
>  >  >  >  >  > > > > On 18/11/2007, Joe Kramer <[EMAIL PROTECTED]> wrote:
>  >  >  >  >  > > > > > Hello,
>  >  >  >  >  > > > > >
>  >  >  >  >  > > > > > How can we configure HTTP Request defaults in Jmeter 
> ant
>  >  >  >  task?
>  >  >  >  >  > > > > > This is needed for example if you have multiple hosts 
> and
>  >  >  >  > want to use  > > > > > same JMX file running against different 
> hosts.
>  >  >  >  >  > > > > >
>  >  >  >  >  > > > > > I imagine it should work like this: you pass
>  >  >  >  > -Dtest.host=something.com  > > > > > to Ant and then use this 
> variable
>  >  >  >
>  >  >  >  > in Jmeter ant task. But how to pass  > > > > > that into Jmeter 
> Ant
>  >  >  >  task is not described.
>  >  >  >  >  > > > > >
>  >  >  >  >  > > > > > Thanks.
>  >  >  >  >  > > > > > Joe.
>  >  >  >  >  > > > > >
>  >  >  >  >  > > > > >
>  >  >  >  > 
> ---------------------------------------------------------------------
>  >  >  >  >  > > > > > 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]
>  >  >  >  >  > > >
>  >  >  >  >  > > >
>  >  >  >  >  > >
>  >  >  >  >  > >
>  >  >  >  > 
> ---------------------------------------------------------------------
>  >  >  >  >  > > 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]
>  >  >  >  >
>  >  >  >  >
>  >  >  >
>  >  >  >  
> ---------------------------------------------------------------------
>  >  >  >  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]
>  >  >
>  >  >
>  >
>  >  ---------------------------------------------------------------------
>  >  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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to