com.ibm.rational.test.lt.kernel.services
Interface ILoopControl


public interface ILoopControl

The ILoopControl interface provides basic control over loops in a performance test or schedule. It is used from ICustomCode2 with the getLoopControl() method in ITestExecutionServices.

The loop that is acted on is the nearest containing loop found in either the test or the schedule. breakLoop() and continueLoop() take effect after the current child action of the loop container is complete. For example, if a loop contains two pages, pageA and pageB, and within pageA custom code is inserted that calls breakLoop(), the remaining actions (requests) of pageA are executed and pageA terminates normally. The loop breaks before beginning pageB.


Method Summary
 void breakLoop()
          Causes termination of the loop as soon as the current child of the loop finishes.
 void continueLoop()
          Causes the loop to skip the remainder of the current iteration of the body after the current child of the loop finishes.
 int getIterationCount()
          Returns the iteration count (1-based) for the current instance of the loop.
 

Method Detail

breakLoop

public void breakLoop()
Causes termination of the loop as soon as the current child of the loop finishes.


continueLoop

public void continueLoop()
Causes the loop to skip the remainder of the current iteration of the body after the current child of the loop finishes.


getIterationCount

public int getIterationCount()
Returns the iteration count (1-based) for the current instance of the loop.

Returns:
The iteration count (1-based) for the current instance of the loop.


Copyright (c) IBM Corp. and others 2005. All rights reserved