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?
>
> 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?
Does it work OK in JMeterAnt?
>
> 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.
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?
>
>
>
> Thanks in advance for any assistance.
>
>
>
> Jonathan Jackson.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]