You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Krzysieq <kr...@gazeta.pl> on 2008/08/01 15:44:30 UTC

Ant-jmeter task problem

Hi,

Has anyone here used the ant-jmeter task from programmerplanet.org? I have
the latest version and am experiencing difficulty trying to pass some
parameters to the jmeter commandline. Here's my code:

<jmeter jmeterhome="${JmeterHome}"
            resultlogdir="${logdir}/jmeterlogs"
            failureproperty="jmeterfailed">
  <testplans dir="/FOO/BAR/jmeter/nonregression">
    <include name="*.jmx"/>
  </testplans>
  <property name="jmxresultdir" value="${tempdir}/jmeter/responses"/>
  <property name="datadir" value="/FOO/BAR/data"/>
  <jmeterarg value="-q /FOO/BAR/properties/env.properties"/>
  <jmeterarg value="-q /FOO/BAR/data/tokens.properties"/>
</jmeter>

It looks as if the last two nested elements - jmeterarg - are ignored. Has
anyone experienced this behavior as well? Do You know of any solution? I
will greatly appreciate any help.

Cheers,
Chris

Re: Ant-jmeter task problem

Posted by Krzysieq <kr...@gazeta.pl>.
Great many thanks! It helped :)

Cheers,
Chris

2008/8/1 Steve Loughran <st...@apache.org>

> Krzysieq wrote:
>
>> Hi,
>>
>> Has anyone here used the ant-jmeter task from programmerplanet.org? I
>> have
>> the latest version and am experiencing difficulty trying to pass some
>> parameters to the jmeter commandline. Here's my code:
>>
>> <jmeter jmeterhome="${JmeterHome}"
>>            resultlogdir="${logdir}/jmeterlogs"
>>            failureproperty="jmeterfailed">
>>  <testplans dir="/FOO/BAR/jmeter/nonregression">
>>    <include name="*.jmx"/>
>>  </testplans>
>>  <property name="jmxresultdir" value="${tempdir}/jmeter/responses"/>
>>  <property name="datadir" value="/FOO/BAR/data"/>
>>  <jmeterarg value="-q /FOO/BAR/properties/env.properties"/>
>>  <jmeterarg value="-q /FOO/BAR/data/tokens.properties"/>
>> </jmeter>
>>
>> It looks as if the last two nested elements - jmeterarg - are ignored. Has
>> anyone experienced this behavior as well? Do You know of any solution? I
>> will greatly appreciate any help.
>>
>
> could be you need the -q and the following arg as separate values -that
> would be consistent with <java> and <exec>
>
>
> --
> Steve Loughran                  http://www.1060.org/blogxter/publish/5
> Author: Ant in Action           http://antbook.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: Ant-jmeter task problem

Posted by Steve Loughran <st...@apache.org>.
Krzysieq wrote:
> Hi,
> 
> Has anyone here used the ant-jmeter task from programmerplanet.org? I have
> the latest version and am experiencing difficulty trying to pass some
> parameters to the jmeter commandline. Here's my code:
> 
> <jmeter jmeterhome="${JmeterHome}"
>             resultlogdir="${logdir}/jmeterlogs"
>             failureproperty="jmeterfailed">
>   <testplans dir="/FOO/BAR/jmeter/nonregression">
>     <include name="*.jmx"/>
>   </testplans>
>   <property name="jmxresultdir" value="${tempdir}/jmeter/responses"/>
>   <property name="datadir" value="/FOO/BAR/data"/>
>   <jmeterarg value="-q /FOO/BAR/properties/env.properties"/>
>   <jmeterarg value="-q /FOO/BAR/data/tokens.properties"/>
> </jmeter>
> 
> It looks as if the last two nested elements - jmeterarg - are ignored. Has
> anyone experienced this behavior as well? Do You know of any solution? I
> will greatly appreciate any help.

could be you need the -q and the following arg as separate values -that 
would be consistent with <java> and <exec>


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

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