You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Knut Borchart <kb...@gmail.com> on 2007/09/14 10:55:37 UTC

Parameters block used despite placed within an IF-Controller

Hi,

here is what i want to do: use the same jmeter script to test LIVE and
TEST servers, with different configurations for hostname, path etc. I
have two different user parameter blocks and one variable on test plan
level which i set to either testmode or livemode. User parameter
blocks are placed in IF-Controller scope where i check the value of
the current mode.

Unfortunately it seems like that the parameter blocks where i define
variables for the script are evaluated both despite i placed them in
IF-Controllers where only one evaluates to true depending on the mode.

Is this supposed to be that way? How can i achieve that a parameter
block is only evaluated under certain conditions?

TIA, Knut

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


Re: Parameters block used despite placed within an IF-Controller

Posted by sebb <se...@gmail.com>.
Probably easier to use two different properties files, and pass them
to the test using the -q command-line parameter.

Or use different directories for the tests, each with its own
user.properties file.


On 14/09/2007, Knut Borchart <kb...@gmail.com> wrote:
> Hi,
>
> here is what i want to do: use the same jmeter script to test LIVE and
> TEST servers, with different configurations for hostname, path etc. I
> have two different user parameter blocks and one variable on test plan
> level which i set to either testmode or livemode. User parameter
> blocks are placed in IF-Controller scope where i check the value of
> the current mode.
>
> Unfortunately it seems like that the parameter blocks where i define
> variables for the script are evaluated both despite i placed them in
> IF-Controllers where only one evaluates to true depending on the mode.
>
> Is this supposed to be that way? How can i achieve that a parameter
> block is only evaluated under certain conditions?

The JMeter test plan is not processed in strict order, apart from
Controllers and Samplers. Other elements are processed according to
their type and level within the hierarchy.

See:

http://jakarta.apache.org/jmeter/usermanual/test_plan.html

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

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