com.ibm.rational.test.lt.kernel.action
Interface IFor
- All Superinterfaces:
- IContainer, ICountable, IKAction, IKLog, IKSemaphore, ILoop, ITestExecutionServices, IWhile, Runnable
- All Known Subinterfaces:
- IPacedLoop
public interface IFor
- extends IWhile
A 'for' loop.
There are four basic elements to a 'for' loop:
- Initialization
- Continuation
- Increment
- Body
Think of these in the following way:
for ( initialization ; continuation ; increment ) {
body;
}
Initalization performs some arbitrary action as setup for the loop.
Continuation defines the condition under which the loop should continue.
Increment performs some arbitrary action that will result in an
incremental change to the execution of the loop.
Body denotes a special container that holds all the actions that need to
be performed as part of the loop.
Notes:
- This interface does not assume that the loop is for a certain number
of times.
- In general, an action should be set up before the
loop to maintain and communicate state between the initialization,
continuation, and increment steps. Access its values the way
you would any other IKAction.
- See Also:
IKAction
,
ICondition
,
ILoop
Fields inherited from interface com.ibm.rational.test.lt.kernel.logging.IKLog |
HISTORY_ALL, HISTORY_NONE, HISTORY_PAGES, HISTORY_REQUESTS, HISTORY_SCHEDULE, LOG_ALL, LOG_CONFIG, LOG_FINE, LOG_FINER, LOG_FINEST, LOG_INFO, LOG_NONE, LOG_SEVERE, LOG_WARNING, STATISTIC_ALL, STATISTIC_NONE, STATISTIC_PAGES |
Methods inherited from interface com.ibm.rational.test.lt.kernel.action.IContainer |
add, addCatch, addFinally, addInitially, current, finish, get, getActions, getActionsArray, getChildCount, getParentHistoryId, getStartEvent, getStartHistoryId, getStopEvent, getUserGroup, getVirtualUser, isAllowChildrenToPageTestLog, next, nextHistoryId, previous, recordChildExecutionTime, registerChildVerdict, registerChildVerdict, registerChildVerdict, registerChildVerdict, remove, rollUpVerdicts, setAllowChildrenToPageTestLog, setStartHistoryId, stopChildren, verifyParentRelationships |
Methods inherited from interface com.ibm.rational.test.lt.kernel.action.IKAction |
abandon, addEventBehavior, blocked, execute, executeAction, executionTime, findDataArea, finish, getBlockedTimeout, getHistory, getHistoryType, getId, getName, getParent, getResultInteger, getResultObject, getResultString, getRtbEnabled, getStatTree, getStopRequested, getSubsystem, getTimeoutDuration, getTimeoutScheme, getVirtualUserName, getWorkerThread, hasFinished, hasStarted, isRunning, reset, setBlockedTimeout, setDispatchingAction, setHistory, setHistoryType, setId, setResultInteger, setResultObject, setResultString, setResultString, setRtbEnabled, setStatTree, start, status, stop, stop, stopAction |
Methods inherited from interface com.ibm.rational.test.lt.kernel.logging.IKLog |
getHistoryLevel, getHistoryLevel, getLogLevel, getStatisticsLevel, getVirtualUserGUID, log, log, log, log, reportEvent, reportEvent, reportEvent, reportMessage, reportMessage, reportMessage, reportVerdict, reportVerdict, reportVerdict, reportVerdict, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, wouldARM, wouldLog, wouldReportHistory, wouldReportHistory, wouldReportStatistics |
Methods inherited from interface java.lang.Runnable |
run |
setInitialization
void setInitialization(IKAction action)
- Specify an action to perform at initialization
- Parameters:
action
- the action
setIncrement
void setIncrement(IKAction action)
- Specify an action to perform when incrementing the loop.
- Parameters:
action
- the action
© Copyright IBM Corp. 2012. All rights reserved.