com.ibm.rational.test.lt.kernel.action
Interface IIf
- All Superinterfaces:
- ICountable, IKAction, IKLog, IKSemaphore, ITestExecutionServices, Runnable
public interface IIf
- extends IKAction
An 'if' block.
IF statements employ three basic concepts:
- a condition
- a then clause - a block to execute when the condition is true
- an else clause - a block to execute when the condition is false
Using the if statement is straight-forward. Create a conditional
to evaluate. Create the block of actions to execute when the conditional
is positive. Create the negative block of actions. Add the three items to
the if action.
If the condition needs access to another action in order to evaluate, access
other actions in the standard ways. Note that, by definition, the parent container
of the condition is the container in which the IF resides.
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.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 |
setThen
void setThen(IContainer container)
setElse
void setElse(IContainer container)
setCondition
void setCondition(ICondition condition)
© Copyright IBM Corp. 2012. All rights reserved.