On 23/07/2008, Marmelstein, John <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm trying to control my loops, and I'm wondering if there is a good way
> to do it. As a way to start the loop, I could use Loop Controller, or
> set the loop flag on the thread group. The things I need to do are-
>
> 1- Control the duration of each loop. I want each loop to take one
> minute. For example, say the samplers generally finish in about 10
> seconds. I would want a pause of 50 before the next iteration. I know
> this could be done (pretty much) with a constant throughput timer, but I
> don't know how many samplers there will be per iteration.
One way might be:
Add User Parameter as a child of the first sample to save the current
time as START.
Add a child timer to a Test Action at the end of the loop, and
calculate the remaining time using something like:
${__longSum(60000,${START},-${__time()})}
The Test Action will then pause for the appropriate time.
> 2- Break out of a loop. I would like to break out of a loop (for
> example go back to the start of a loop controller) under some condition
> (maybe in an IF controller). Anyone know how to do that?
Not easy; I think the only way is to use an If Controller for each
sampler apart from the first:
Loop
Sample 1
IF continue
Sample 2
IF continue
Sample 3
etc.
> Thanks!
> John
>
>
>
>
> ***************************************************************************************************
> The information in this email is confidential and may be legally privileged.
> Access to this email by anyone other than the intended addressee is
> unauthorized. If you are not the intended recipient of this message, any
> review, disclosure, copying, distribution, retention, or any action taken or
> omitted to be taken in reliance on it is prohibited and may be unlawful. If
> you are not the intended recipient, please reply to or forward a copy of this
> message to the sender and delete the message, any attachments, and any copies
> thereof from your system.
>
> ***************************************************************************************************
>
> BearingPoint Ireland Limited is a private limited company which is
> incorporated in Bermuda No. 28723, registered as a branch in Dublin, Ireland
> No. E4448. Registered office: Montague House, Adelaide Road, Dublin 2.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]