Hi, I am trying your scenario but found the error of "Unknown search_in
value var." when started. Did I miss something ? 
 
I used the command as "./sipp -sn uac -sf client_reg_10_times.xml -trace_msg
-trace_err -inf client_reg.csv 192.168.2.4"
 
Regards,
 
Jun

  _____  

From: mayamatakeshi [mailto:mayamatake...@gmail.com] 
Sent: Saturday, July 10, 2010 10:33 AM
To: Eduardo Martins
Cc: Sipp-users@lists.sourceforge.net
Subject: Re: [Sipp-users] How to repeat N times part of a scenario?



On Sat, Jul 10, 2010 at 8:27 AM, Eduardo Martins <emmart...@gmail.com>
wrote:


I would like to repeat N times part of a scenario, how can I do it?



You might want to take a look at the attached scenario that I used when I
had to test this:
  - register 10 times
  - unregister
 

One idea would be variable value adding then testing if equals N but
afaik this assigns true to another variable and I could not find a way
to jump to label if a variable is true, only if is set, but "false"
sets variable too.



I'm pretty sure you can use something like this:

 <nop>
   <action>
      <assign assign_to="counter" value="0"/>
  </action>
 </nop>

 <label id="start_of_loop" />

 ... Some operations ...

  <nop>
    <action>
      <add assign_to="counter" value="1"/>
      <test assign_to="flag_limit" variable="counter"
compare="greater_than_equal" value="20"/>
    </action>
  </nop>

  <nop next="finished" test="flag_limit"/>

  <nop next="start_of_loop"/>

  <label id="finished" />
 
  ... terminating operations....
  

regards,
takeshi



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to