|
IBM Rational Performance Tester TES | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
breakImmediate(String message)
Causes immediate termination of the loop. |
void |
breakImmediate(String message,
boolean showStack)
Causes immediate termination of the loop. |
void |
breakImmediate(String message,
int severity)
Causes immediate termination of the loop. |
void |
breakImmediate(String message,
int severity,
boolean showStack)
Causes immediate termination of the loop. |
void |
breakLoop()
Causes termination of the loop as soon as the current child of the loop finishes. |
void |
continueImmediate(String message)
Causes immediate termination of the current iteration of the loop. |
void |
continueImmediate(String message,
boolean showStack)
Causes immediate termination of the current iteration of the loop. |
void |
continueImmediate(String message,
int severity)
Causes immediate termination of the current iteration of the loop. |
void |
continueImmediate(String message,
int severity,
boolean showStack)
Causes immediate termination of the current iteration of the loop. |
void |
continueLoop()
Causes the loop to skip the remainder of the current iteration of the body after the current child of the loop finishes. |
long |
getElapsedTime()
How long has this loop been running? |
int |
getIterationCount()
Returns the iteration count (1-based) for the current instance of the loop. |
Method Detail |
---|
void breakLoop()
void breakImmediate(String message)
message
- The message to include in the testLog message event.void breakImmediate(String message, int severity)
message
- The message to include in the testLog message event.severity
- The severity to assign to the testLog message event.void breakImmediate(String message, int severity, boolean showStack)
message
- The message to include in the testLog message event.severity
- The severity to assign to the testLog message event.showStack
- indicates whether or not to include a stack trace in the testLog message event.void breakImmediate(String message, boolean showStack)
message
- The message to include in the testLog message event.showStack
- indicates whether or not to include a stack trace in the testLog message event.void continueLoop()
void continueImmediate(String message)
message
- The message to include in the testLog message event.void continueImmediate(String message, int severity)
message
- The message to include in the testLog message event.severity
- The severity to assign to the testLog message event.void continueImmediate(String message, int severity, boolean showStack)
message
- The message to include in the testLog message event.severity
- The severity to assign to the testLog message event.showStack
- indicates whether or not to include a stack trace in the testLog message event.void continueImmediate(String message, boolean showStack)
message
- The message to include in the testLog message event.showStack
- indicates whether or not to include a stack trace in the testLog message event.int getIterationCount()
long getElapsedTime()
|
IBM Rational Performance Tester TES | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |