On 11 November 2012 12:26, danimni <[email protected]> wrote:
> Hi,
> I was wondering if there is a way to "tell" the "If Controller" to test the
> condition with NO case sensitive.
> for example:
> I have "If Controller" with the following condition:
>
> "${ListenHostName}" == "${MyHost}"
>
> if ${ListenHostName} value is let’s say: "VM1_NAME" and ${MyHost} value is
> "vm1_name".
> in this case, the "If Controller" result will be FALSE.
> Is there a way to set the controller to be with NO case sensitive?

The If Controller docn

http://jmeter.apache.org/usermanual/component_reference.html#If_Controller

shows that the condition is by default interpreted as Javascript, so
it's just necessary to tell Javascript to do a case-blind comparison.

For Java that would be

"${ListenHostName}".equalsIgnoreCase("${MyHost}")

I don't know Javascript but I imagine it has something similar, if not
identical.

> Thanks,
> Dan.
>
>
>
> --
> View this message in context: 
> http://jmeter.512774.n5.nabble.com/If-Controller-case-sensitive-tp5715297.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to