You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Fulvio Guglielmelli <fu...@yahoo.it> on 2008/05/09 12:12:49 UTC

while condition doesn't work

Hi
  i need to use while Condition verifing if var1<var2
   
  i tryed to use:
  ${__javaScript(${var1}<${var2})}
   
  i tryed to set a variable (superato ) in  a BeanShell Assertion and test:
  while condition  ${superato} or ${__P(superato,)}
  
     String  totale = vars.get("totale");
     String lim= vars.get("limit");

       int limIntero = new Integer(lim).intValue();
     int totaleIntero = new Integer(totale).intValue();
     if (limIntero>totaleIntero)
        {
          print("SUPERATO");     
          vars.put("superato","false");
       }

   
  but NOTHING
   
  Can any one help me? 
   
   Fulvio

       
---------------------------------
Scopri il  Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!

Re: while condition doesn't work

Posted by sebb <se...@gmail.com>.
Looks basically OK.

Check the jmeter log file for errors.

On 09/05/2008, Fulvio Guglielmelli <fu...@yahoo.it> wrote:
> Hi
>   i need to use while Condition verifing if var1<var2
>
>   i tryed to use:
>   ${__javaScript(${var1}<${var2})}
>
>   i tryed to set a variable (superato ) in  a BeanShell Assertion and test:
>   while condition  ${superato} or ${__P(superato,)}
>
>      String  totale = vars.get("totale");
>      String lim= vars.get("limit");
>
>        int limIntero = new Integer(lim).intValue();
>      int totaleIntero = new Integer(totale).intValue();
>      if (limIntero>totaleIntero)
>         {
>           print("SUPERATO");
>           vars.put("superato","false");
>        }
>
>
>   but NOTHING
>
>   Can any one help me?
>
>
>    Fulvio
>
>
>
>  ---------------------------------
>  Scopri il  Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!

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