[Tsung] loop on request - loop on a set of requests ?
Nicolas Niclausse
nicolas at niclux.org
Wed Apr 2 15:08:59 CEST 2008
philippe vanderstraeten a écrit :
> Hello,
>
> I looked at the new loop functionnality . The problem is that this loop
> parameter applies only on single request.
> My wish is to replay a set of URLs which are related to each others. By
> Example:
>
> request 1 --> connect
> request 2 --> url1
> request 3 --> url2
> request 4 --> url3
> request 5 --> disconnect
>
> I would like to run once per user connect and disconnect and for each
> user run the group of request 2,3,4 (in that order) 1000 times.
> This is specially usefulll when you want to detect memory leaks in a web
> application.
>
> As is it is not possible, I tried to find a workaround duplication my
> <request></request> 100 or 200 times, but Tsung blows up due to memory
> limitations.
>
> So what could be possible to do ?
Can you try this (untested !) patch ?
It adds an 'loop_back' option. This means: when loop on a request, loop
back to the Nth previous request in the session.
In your case, in request4, you want to loop to url1, so 2 requests
before request4 :
<match do="loop" sleep_loop="1" max_loop="1000" loop_back="2"
when="match">Retry</match>
If it works for you, i will commit the patch in the trunk
--
Nicolas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: back.diff
Url: http://lists.process-one.net/pipermail/tsung-users/attachments/20080402/6f2b00d1/back.ksh
More information about the Tsung-users
mailing list