You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Marco Strullato <ma...@gmail.com> on 2008/07/07 17:34:03 UTC

while controller condition correct syntax

Hi all,
I have to insert a condition into a while controller: I did some tests
but I can not understand the right syntax.

Could you help me?

I want to test this condition: HOA or LOA or UI or GN

I tried with

${__javaScript(("${HOA}" != "NONE"),dummy)} ||
${__javaScript(("${LOA}" != "NONE"),dummy)} || ${__javaScript(("${UI}"
!= "NONE"),dummy)} || ${__javaScript(("${GN}" != "NONE"),dummy)}

and

${__javaScript( "${HOA}" != "NONE" || "${LOA}" != "NONE" || "${UI}"
!= "NONE" || "${GN}" != "NONE" ,dummy)}

with no luck..

Could you write me the correct syntax?


Thanks

Marco Strullato

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


Re: more on beanshell

Posted by sebb <se...@gmail.com>.
On 09/07/2008, kirk <ki...@gmail.com> wrote:
> Hi Sebb,
>
>  What I was hoping for was the ability to contain all properties on a
> project by project basis so that I could lock down the distribution. Seems
> like there are a few options to manage this. I can have local copies of
> user.properties and system.properties. Having the ability to define a local
> jmeter.properties would just about fit the bill. Do you know if this command
> line option would do it? -p, --propfile {argument}.
>

-q propfile

-p, -q and user.properties are all used to define JMeter properties.

>  TIA,
>  Kirk
>
>
>  sebb wrote:
>
> > On 08/07/2008, kirk <ki...@gmail.com> wrote:
> >
> >
> > > Hi,
> > >
> > >  I tend to test many websites so keeping beanshell scripts in the jmeter
> > > distro doesn't allow me to keep things as organized as I'd like them to
> be.
> > > Does anyone know of some way to set an alternate directory for the pre,
> > > post, and sampler beanshell scripts?
> > >
> > >
> > >
> >
> > The init files can be in any directory - just change the property.
> > Likewise for script files, you can use a absolute or relative path.
> >
> >
> >
> > >  Regards,
> > >  Kirk
> > >
> > >
> ---------------------------------------------------------------------
> > >  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
>
>

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


Re: more on beanshell

Posted by kirk <ki...@gmail.com>.
Hi Sebb,

What I was hoping for was the ability to contain all properties on a 
project by project basis so that I could lock down the distribution. 
Seems like there are a few options to manage this. I can have local 
copies of user.properties and system.properties. Having the ability to 
define a local jmeter.properties would just about fit the bill. Do you 
know if this command line option would do it? -p, --propfile {argument}.

TIA,
Kirk

sebb wrote:
> On 08/07/2008, kirk <ki...@gmail.com> wrote:
>   
>> Hi,
>>
>>  I tend to test many websites so keeping beanshell scripts in the jmeter
>> distro doesn't allow me to keep things as organized as I'd like them to be.
>> Does anyone know of some way to set an alternate directory for the pre,
>> post, and sampler beanshell scripts?
>>
>>     
>
> The init files can be in any directory - just change the property.
> Likewise for script files, you can use a absolute or relative path.
>
>   
>>  Regards,
>>  Kirk
>>
>> ---------------------------------------------------------------------
>>  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


Re: more on beanshell

Posted by sebb <se...@gmail.com>.
On 08/07/2008, kirk <ki...@gmail.com> wrote:
> Hi,
>
>  I tend to test many websites so keeping beanshell scripts in the jmeter
> distro doesn't allow me to keep things as organized as I'd like them to be.
> Does anyone know of some way to set an alternate directory for the pre,
> post, and sampler beanshell scripts?
>

The init files can be in any directory - just change the property.
Likewise for script files, you can use a absolute or relative path.

>  Regards,
>  Kirk
>
> ---------------------------------------------------------------------
>  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


more on beanshell

Posted by kirk <ki...@gmail.com>.
Hi,

I tend to test many websites so keeping beanshell scripts in the jmeter 
distro doesn't allow me to keep things as organized as I'd like them to 
be. Does anyone know of some way to set an alternate directory for the 
pre, post, and sampler beanshell scripts?

Regards,
Kirk

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


Re: while controller condition correct syntax

Posted by sebb <se...@gmail.com>.
On 07/07/2008, Marco Strullato <ma...@gmail.com> wrote:
> Hi all,
>  I have to insert a condition into a while controller: I did some tests
>  but I can not understand the right syntax.

The result of processing the field must be "false" in order to exit
the controller.

>  Could you help me?
>
>  I want to test this condition: HOA or LOA or UI or GN
>

What is the condition?

>  I tried with
>
>  ${__javaScript(("${HOA}" != "NONE"),dummy)} ||
>  ${__javaScript(("${LOA}" != "NONE"),dummy)} || ${__javaScript(("${UI}"
>  != "NONE"),dummy)} || ${__javaScript(("${GN}" != "NONE"),dummy)}
>

That won't work, because the result will be

false || true || false || false

or similar.

>  and
>
>  ${__javaScript( "${HOA}" != "NONE" || "${LOA}" != "NONE" || "${UI}"
>  != "NONE" || "${GN}" != "NONE" ,dummy)}
>

That looks more like it.

Try putting that condition in a Java Request sampler so you can see
what it evaluates to.

BTW, the dummy variable is no longer needed.

>  with no luck..
>
>  Could you write me the correct syntax?
>
>
>  Thanks
>
>  Marco Strullato
>
>  ---------------------------------------------------------------------
>  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