|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public void breakLoop()
public void continueLoop()
public int getIterationCount()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |