Thanks takeshi, it works.

Just one thing, usage of [branch] in the looped request gets screwed,
since message index used to generate the branch is constant. I
replaced its usage with z9hG4bK-[pid]-[call_number]-[$counter].

-- Eduardo

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
http://emmartins.blogspot.com
http://www.redhat.com/solutions/telco



On Sat, Jul 10, 2010 at 3:32 AM, mayamatakeshi <mayamatake...@gmail.com> wrote:
>
> 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