You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Fulvio Guglielmelli <fu...@yahoo.it> on 2008/02/01 12:24:56 UTC

jmeter with ant use the console properties!!!!

Hi, 
  I'm tring to use ant to run my test
   
  I usually run my test from jmeter console, 
  this is the configuration
   
  Thread Group  (n.threads=1, loop count = 100)
      Loop Controller
         Java Request (ThreadNum=${__threadNum}, repository=1)
   
  Now I need to run it with ant,
  I set the properties in build.xml like below
   
  when jmeter start continue to use the value setted with console and not the value setted in ant.
   
  <jmeter    jmeterhome="c:/jmeter" 
resultlog="${dist}/JMeterResults.jtl"> 

<testplans dir="${src}" includes="*.jmx"/> 
   <property name="request.threads" value="1"/> 
   <property name="request.loop" value="2"/> 
   <property name="repository" value="2"/> 
</jmeter> 
   
  Where is the mistake
  thanks
  fulvio

       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

Re: jmeter with ant use the console properties!!!!

Posted by sebb <se...@gmail.com>.
Works fine for me using the build.xml file in extras/

I suggest you try running the test in non-GUI mode e.g.:

jmeter -n -Jrequest.threads=5 -t test.jmx -l test.jtl

and see if that works.

On 01/02/2008, Fulvio Guglielmelli <fu...@yahoo.it> wrote:
> I'm using version 2.3
>
>   Where are you putting the function references?
> TEST.JMX
>    Thread Group (n.threads=${__P(request.threads,2)}, loop count = ${__P(request.loop,2)} )
> > > Java Request (ThreadNum=${__threadNum}, repository=${__P(repository,0))
>
>   thanks
>   fulvio
>
> sebb <se...@gmail.com> ha scritto:
>   What version of JMeter are you using? Works fine for me in 2.3.1.
>
> Where are you putting the function references?
>
> On 01/02/2008, Fulvio Guglielmelli wrote:
> > i setted the 3 properties in JMX
> > ${__P(request.threads)}
> > ${__P(request.loop)}
> > ${__P(request.repository)}
> >
> > but jmeter doest replave values.
> >
> > when i run the ant i saw in log:
> > 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Replacement result:
> > 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: About to replace in property of type: class org.apache.jmeter.testelement.property.StringProperty: ${__P(request.threads,2)}
> > 2008/02/01 13:01:51 DEBUG - jmeter.testelement.property.AbstractProperty: Not running version, return raw function string
> > 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Replacement result: ${__P(request.threads,2)}
> > 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: About to replace in property of type: class org.apache.jmeter.testelement.property.BooleanProperty: false
> > 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Won't replace false
> >
> >
> > sebb ha scritto:
> > On 01/02/2008, Fulvio Guglielmelli wrote:
> > > Hi,
> > > I'm tring to use ant to run my test
> > >
> > > I usually run my test from jmeter console,
> > > this is the configuration
> > >
> > > Thread Group (n.threads=1, loop count = 100)
> > > Loop Controller
> > > Java Request (ThreadNum=${__threadNum}, repository=1)
> > >
> > > Now I need to run it with ant,
> > > I set the properties in build.xml like below
> > >
> > > when jmeter start continue to use the value setted with console and not the value setted in ant.
> > >
> > > > resultlog="${dist}/JMeterResults.jtl">
> > >
> > >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> > >
> > > Where is the mistake
> >
> > You need to ensure that the Thead Group uses the request.threads
> > property, i.e. by using
> >
> > ${__P(request.threads)}
> >
> > Etc
> > > thanks
> > > fulvio
> > >
> > >
> > > ---------------------------------
> > >
> > > ---------------------------------
> > > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> > ---------------------------------
> >
> > ---------------------------------
> > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------
>
> ---------------------------------
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

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


Re: jmeter with ant use the console properties!!!!

Posted by Fulvio Guglielmelli <fu...@yahoo.it>.
I'm using version 2.3
   
  Where are you putting the function references?
TEST.JMX
   Thread Group (n.threads=${__P(request.threads,2)}, loop count = ${__P(request.loop,2)} )
> > Java Request (ThreadNum=${__threadNum}, repository=${__P(repository,0))

  thanks
  fulvio

sebb <se...@gmail.com> ha scritto:
  What version of JMeter are you using? Works fine for me in 2.3.1.

Where are you putting the function references?

On 01/02/2008, Fulvio Guglielmelli wrote:
> i setted the 3 properties in JMX
> ${__P(request.threads)}
> ${__P(request.loop)}
> ${__P(request.repository)}
>
> but jmeter doest replave values.
>
> when i run the ant i saw in log:
> 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Replacement result:
> 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: About to replace in property of type: class org.apache.jmeter.testelement.property.StringProperty: ${__P(request.threads,2)}
> 2008/02/01 13:01:51 DEBUG - jmeter.testelement.property.AbstractProperty: Not running version, return raw function string
> 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Replacement result: ${__P(request.threads,2)}
> 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: About to replace in property of type: class org.apache.jmeter.testelement.property.BooleanProperty: false
> 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Won't replace false
>
>
> sebb ha scritto:
> On 01/02/2008, Fulvio Guglielmelli wrote:
> > Hi,
> > I'm tring to use ant to run my test
> >
> > I usually run my test from jmeter console,
> > this is the configuration
> >
> > Thread Group (n.threads=1, loop count = 100)
> > Loop Controller
> > Java Request (ThreadNum=${__threadNum}, repository=1)
> >
> > Now I need to run it with ant,
> > I set the properties in build.xml like below
> >
> > when jmeter start continue to use the value setted with console and not the value setted in ant.
> >
> > > resultlog="${dist}/JMeterResults.jtl">
> >
> >
> >
>
>
> >
>
>
> >
>
>
> >
> >
> > Where is the mistake
>
> You need to ensure that the Thead Group uses the request.threads
> property, i.e. by using
>
> ${__P(request.threads)}
>
> Etc
> > thanks
> > fulvio
> >
> >
> > ---------------------------------
> >
> > ---------------------------------
> > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------
>
> ---------------------------------
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

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



       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

Re: jmeter with ant use the console properties!!!!

Posted by sebb <se...@gmail.com>.
What version of JMeter are you using? Works fine for me in 2.3.1.

Where are you putting the function references?

On 01/02/2008, Fulvio Guglielmelli <fu...@yahoo.it> wrote:
> i setted the 3 properties in JMX
>   ${__P(request.threads)}
>   ${__P(request.loop)}
>   ${__P(request.repository)}
>
>   but jmeter doest replave values.
>
> when i run the ant i saw in log:
>   2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Replacement result:
> 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: About to replace in property of type: class org.apache.jmeter.testelement.property.StringProperty: ${__P(request.threads,2)}
> 2008/02/01 13:01:51 DEBUG - jmeter.testelement.property.AbstractProperty: Not running version, return raw function string
> 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Replacement result: ${__P(request.threads,2)}
> 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: About to replace in property of type: class org.apache.jmeter.testelement.property.BooleanProperty: false
> 2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Won't replace false
>
>
> sebb <se...@gmail.com> ha scritto:
>   On 01/02/2008, Fulvio Guglielmelli wrote:
> > Hi,
> > I'm tring to use ant to run my test
> >
> > I usually run my test from jmeter console,
> > this is the configuration
> >
> > Thread Group (n.threads=1, loop count = 100)
> > Loop Controller
> > Java Request (ThreadNum=${__threadNum}, repository=1)
> >
> > Now I need to run it with ant,
> > I set the properties in build.xml like below
> >
> > when jmeter start continue to use the value setted with console and not the value setted in ant.
> >
> > > resultlog="${dist}/JMeterResults.jtl">
> >
> >
> >
>
>
> >
>
>
> >
>
>
> >
> >
> > Where is the mistake
>
> You need to ensure that the Thead Group uses the request.threads
> property, i.e. by using
>
> ${__P(request.threads)}
>
> Etc
> > thanks
> > fulvio
> >
> >
> > ---------------------------------
> >
> > ---------------------------------
> > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------
>
> ---------------------------------
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

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


Re: jmeter with ant use the console properties!!!!

Posted by Fulvio Guglielmelli <fu...@yahoo.it>.
i setted the 3 properties in JMX 
  ${__P(request.threads)}
  ${__P(request.loop)}
  ${__P(request.repository)}
   
  but jmeter doest replave values.
  
when i run the ant i saw in log:
  2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Replacement result:  
2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: About to replace in property of type: class org.apache.jmeter.testelement.property.StringProperty: ${__P(request.threads,2)}  
2008/02/01 13:01:51 DEBUG - jmeter.testelement.property.AbstractProperty: Not running version, return raw function string 
2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Replacement result: ${__P(request.threads,2)}  
2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: About to replace in property of type: class org.apache.jmeter.testelement.property.BooleanProperty: false 
2008/02/01 13:01:51 DEBUG - jmeter.engine.util.ValueReplacer: Won't replace false 

  
sebb <se...@gmail.com> ha scritto:
  On 01/02/2008, Fulvio Guglielmelli wrote:
> Hi,
> I'm tring to use ant to run my test
>
> I usually run my test from jmeter console,
> this is the configuration
>
> Thread Group (n.threads=1, loop count = 100)
> Loop Controller
> Java Request (ThreadNum=${__threadNum}, repository=1)
>
> Now I need to run it with ant,
> I set the properties in build.xml like below
>
> when jmeter start continue to use the value setted with console and not the value setted in ant.
>
> > resultlog="${dist}/JMeterResults.jtl">
>
> 
> 


> 


> 


> 
>
> Where is the mistake

You need to ensure that the Thead Group uses the request.threads
property, i.e. by using

${__P(request.threads)}

Etc
> thanks
> fulvio
>
>
> ---------------------------------
>
> ---------------------------------
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

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



       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

Re: jmeter with ant use the console properties!!!!

Posted by sebb <se...@gmail.com>.
On 01/02/2008, Fulvio Guglielmelli <fu...@yahoo.it> wrote:
> Hi,
>   I'm tring to use ant to run my test
>
>   I usually run my test from jmeter console,
>   this is the configuration
>
>   Thread Group  (n.threads=1, loop count = 100)
>       Loop Controller
>          Java Request (ThreadNum=${__threadNum}, repository=1)
>
>   Now I need to run it with ant,
>   I set the properties in build.xml like below
>
>   when jmeter start continue to use the value setted with console and not the value setted in ant.
>
>   <jmeter    jmeterhome="c:/jmeter"
> resultlog="${dist}/JMeterResults.jtl">
>
> <testplans dir="${src}" includes="*.jmx"/>
>    <property name="request.threads" value="1"/>
>    <property name="request.loop" value="2"/>
>    <property name="repository" value="2"/>
> </jmeter>
>
>   Where is the mistake

You need to ensure that the Thead Group uses the request.threads
property, i.e. by using

${__P(request.threads)}

Etc
>   thanks
>   fulvio
>
>
> ---------------------------------
>
> ---------------------------------
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

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