> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 5 September 2007 6:31 PM
> To: JMeter Users List
> Subject: Re: JMeterMavenPlugin and the intSum function
>
> On 05/09/07, Jonathan Jackson <[EMAIL PROTECTED]> wrote:
> > Hello
> >
> > I am trying to utilise the JMeterMavenPlugin to run JMeter
integration
> > tests during a maven build.
>
> Which version of JMeter?
Version 2.2
Note that as far as I can tell, there is only a 2.2 version of the
JMeterMavenPlugin jar.
>
> >
> > I have created a test plan to test a couple of ajax calls. The
second
> > call has day, month and year parameters that are populated with data
> > that is extracted from the results of the first call. The day
parameter
> > needs to be one more than the value that has been extracted so I
have
> > used the __intSum function.
>
> OK
>
> >
> > I.e. the day parameter value is
${__intSum(${extractedday},1,newday)} as
> > shown in the following extract from the jmx file:
> >
> > <elementProp name="" elementType="HTTPArgument">
> > <stringProp name="Argument.metadata">=</stringProp>
> > <stringProp
> >
name="Argument.value">${__intSum(${extractedday},1,newday)}</stringProp>
>
> Syntax looks OK.
>
> > <boolProp
name="HTTPArgument.use_equals">true</boolProp>
> > <stringProp name="Argument.name">day</stringProp>
> > <boolProp
> > name="HTTPArgument.always_encode">false</boolProp>
> > </elementProp>
> >
> > where ${extractedday} is the previously extracted day value.
> >
> > This test works without errors when run through JMeter and the value
for
> > the day parameter is equal to the previously extracted day value
plus
> > one.
>
> Does it work OK in non-GUI mode?
Yes it does.
>
> Does it work OK in JMeterAnt?
Yes it does.
>
> >
> > But when I try to run the same test plan using the JMeterMavenPlugin
the
> > __intSum function call does not seem to work and the value for the
day
> > parameter is set to "${${day},1,newday)}".
>
> That's odd.
>
> >
> > Is this a bug/missing feature within the JMeterMavenPlugin or am I
using
> > the function call incorrectly?
>
> I don't know anything about the Maven plugin (it's not part of
> JMeter), but if the test works in JMeter non-GUI and JMeterAnt, then
> it is likely to be the Maven plugin.
I agree, I think it is something in the JMeterMavenPlugin.
Given that the JMeterMavenPlugin is not part of JMeter, do you know
where (or to whom) I can direct this issue to? It would seem that Tim
McCune was the original author, but others have since edited the wiki
page.
>
> If the test does not work in JMeter non-GUI mode (but it does work in
> GUI mode)then it is a JMeter bug.
>
> By the way, Module Controllers don't work in non-GUI mode (just fixed
in
> 2.3RC4)
>
> >
> > Has anyone managed to use function calls in a test plan called
through
> > the JMeterMavenPlugin?
> >
Many thanks for your response.
Jonathan Jackson