Jacqui - variables can defined using config elements. I'm not sure how
Javascript can be used to manipulate variables, but the way I use the
'If Controller' is by setting a property in an external properties file:
property_name=true
I pass the properties file to JMeter from the command line using the -p
parameter. Within the test, the 'If Controller' value is set to access
the property like this:
${__P(property_name)}
With regards,
Sonam Chauhan
--
Corporate Express Australia Ltd.
Phone: +61-2-9335-0725, Fax: 9335-0753, Email: sonamc@ce.com.au
> -----Original Message-----
> From: Jacqui Guerrero [mailto:jguerrero@purisma.com]
> Sent: Tuesday, 13 April 2004 1:44 AM
> To: JMeter Users List
> Subject: RE: If Controller
>
> But how are these variables defined and where? Is it a variable that
is
> defined in the HTML code itself?
>
> Thanks for your reply!
> Jacqui
>
> -----Original Message-----
> From: performance@applabs.net [mailto:performance@applabs.net]
> Sent: Sunday, April 11, 2004 11:53 PM
> To: jmeter-user@jakarta.apache.org
> Subject: Re: If Controller
>
> Hi Jacqui
>
> if Controller is a conditional base Controller, It allows the user to
> control whether the child test elements (like Samplers/controllers,
etc)
> execute or not.
>
> The child elements (like Samplers/controllers, etc) of the 'if
> controller'
> will be processed only on condition true.
>
> Note: - Condition should be Java Script code that returns "true" or
> "false".
>
> In a programming aspect - this is equivalent of:
> If (condition) {
> Statements....
> }
>
> Examples: ${count}< 5
> '${username}' = = 'user1'
> ${serialnum}>9
> where count, username and serialnum are variables.
>
> Thanks
> Applabs Team
>
> ----- Original Message -----
> From: "Jacqui Guerrero" <jguerrero@purisma.com>
> To: <jmeter-user@jakarta.apache.org>
> Sent: Saturday, April 10, 2004 4:09 AM
> Subject: If Controller
>
>
> The documentation does not provide a good way of showing how to use
the
> If Controller. Can someone out here help? What is the format of the
> javascript condition parameter: what values can you use, etc.
>
>
>
> I think that JMeter 2.0 has a lot of great features but documentation
> (i.e. samples) for each of the new controllers would help a lot.
>
>
>
> Thanks,
>
> Jacqui
>
> ---------------------------------------------------------------------
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
|