IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.execution.core.impl
Class LTTestScript

java.lang.Object
  extended by com.ibm.rational.test.lt.kernel.impl.Countable
      extended by com.ibm.rational.test.lt.kernel.action.impl.KAction
          extended by com.ibm.rational.test.lt.kernel.action.impl.KContainer
              extended by com.ibm.rational.test.lt.kernel.action.impl.Container
                  extended by com.ibm.rational.test.lt.kernel.action.impl.KScript
                      extended by com.ibm.rational.test.lt.execution.core.impl.LTTestScript
All Implemented Interfaces:
IArmable, IContainer, IKAction, IKSemaphore, IKThinkControl, IKTimeoutControl, ICountable, IKLog, com.ibm.rational.test.lt.kernel.services.IRPTEventHandler, ITestExecutionServices, Runnable

public class LTTestScript
extends com.ibm.rational.test.lt.kernel.action.impl.KScript
implements IArmable

Since:
6.1.2

Nested Class Summary
static interface LTTestScript.HiddenScript
           
 
Nested classes/interfaces inherited from class com.ibm.rational.test.lt.kernel.action.impl.KScript
com.ibm.rational.test.lt.kernel.action.impl.KScript.TestData
 
Nested classes/interfaces inherited from class com.ibm.rational.test.lt.kernel.action.impl.KContainer
com.ibm.rational.test.lt.kernel.action.impl.KContainer.InitiallyLock
 
Field Summary
 
Fields inherited from class com.ibm.rational.test.lt.kernel.action.impl.KContainer
children, isVirtualUser, manualStop, stopAtYourConvenience, stopAtYourConvenienceRequested
 
Fields inherited from class com.ibm.rational.test.lt.kernel.action.impl.KAction
actionState, debug, historyType, name, stopRequested
 
Fields inherited from interface com.ibm.rational.test.lt.kernel.action.IKAction
ABANDONED, DP_ENCRYPTED_VALUES_KEY, EXECUTING, FINISHED, HANDLETIMER, SEMWAIT, SLEEPING, Status, UNSTARTED
 
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
 
Fields inherited from interface com.ibm.rational.test.lt.kernel.services.ITestExecutionServices
STORAGE_LOCAL, STORAGE_USER
 
Fields inherited from interface com.ibm.rational.test.lt.kernel.action.IKThinkControl
FIXED, PERCENTAGE, RANDOM, RECORDED
 
Fields inherited from interface com.ibm.rational.test.lt.kernel.action.IKTimeoutControl
CONTINUE, RETRY
 
Constructor Summary
LTTestScript(IContainer parent)
           
LTTestScript(IContainer parent, String name)
           
LTTestScript(IContainer parent, String name, String id)
           
LTTestScript(IContainer parent, String name, String id, String scriptId)
           
 
Method Summary
 boolean armActive()
           
 void execute()
          LTTestScript execute understands ARM.
 boolean getArmEnabled()
          Get armEnabled flag for this KAction
 ArmInfo getArmInfo()
          Get ArmInfo object for this KAction
 org.eclipse.hyades.test.common.event.TypedEvent getStartEvent()
           
 org.eclipse.hyades.test.common.event.TypedEvent getStopEvent()
           
 void preFinish()
           
 void setArmEnabled(boolean enabled)
          Set armEnabled flag for this KAction
 void setArmInfo(ArmInfo info)
          Set ArmInfo object for this KAction
 
Methods inherited from class com.ibm.rational.test.lt.kernel.action.impl.KScript
assertStartEvent, getHistoryLevel, getHistoryLevel, getIntValue, getInvocationId, getLogLevel, isScheduleAction, peekPDLogLevel, peekTestLogLevel, popPDLogLevel, popTestLogLevel, pushPDLogLevel, pushTestLogLevel, rollUpVerdicts, setHistoryLevel, setHistoryLevel, setInvocationId, setLogLevel, setScheduleAction, wrapUp
 
Methods inherited from class com.ibm.rational.test.lt.kernel.action.impl.Container
nextHistoryId
 
Methods inherited from class com.ibm.rational.test.lt.kernel.action.impl.KContainer
add, addCatch, addDataArea, addFinally, addInitially, childrenSurvey, containerTestLogComplete, current, decrementChildrenFinished, dispatch, doFinally, executeExceptionHandler, findDataArea, findExceptionHandler, findExceptionHandler, finish, forceStop, get, getActions, getActionsArray, getChildCount, getChildErrorVerdictCount, getChildFailVerdictCount, getChildInconclusiveVerdictCount, getChildrenFinished, getChildVerdictCount, getContainerChildrenCounter, getErrorRollUpVerdict, getExceptionHandler, getExceptionHandlerAction, getFailRollUpVerdict, getFinally, getFriendlyName, getInconclusiveRollUpVerdict, getInitially, getLastInitiallyChild, getParentHistoryId, getPassRollUpVerdict, getStartHistoryId, getThinkActual, getThinkActual, getTimeoutDuration, getTimeoutScheme, getUserGroup, getVerdictErrorList, getVerdictFailList, getVerdictInconclusiveList, getVirtualUser, getVirtualUserName, handleException, incrementChildrenFinished, isAllowChildrenToPageTestLog, isIdle, isStopAtYourConvenience, isStopAtYourConvenienceRequested, makeRollUpVerdict, manualStop, next, nullRollUp, passThroughRollUp, previous, recordChildExecutionTime, registerChildVerdict, registerChildVerdict, registerChildVerdict, registerChildVerdict, remove, removeDataArea, reportEnd, reportEvent, reportEvent, reportEvent, reportEvent, reportForcedStopMessage, reportingRollUp, reportingRollUp, reportingRollUp, reportingRollUp, reportMessage, reportMessage, reportMessage, reportStart, reportStopMessage, reportVerdict, reportVerdict, reportVerdict, reportVerdict, reset, resetContainer, resetRollUp, rewind, setAllowChildrenToPageTestLog, setExceptionHandler, setLowerLimitPercentage, setStartHistoryId, setStopAtYourConvenienceRequested, setThinkFixed, setThinkMax, setThinkPercentage, setThinkScheme, setTimeoutDuration, setTimeoutScheme, setUpperLimitPercentage, status, stop, stopChildren, survey, timeToStop, timeToStop, toXML, verifyParentRelationships, wrapUp
 
Methods inherited from class com.ibm.rational.test.lt.kernel.action.impl.KAction
abandon, acquire, actionStack, addEventBehavior, addNetServerTime, assertParentStartEvent, availablePermits, blocked, blockedAction, couldReportHistory, dawnLog, executeAction, executionTime, findEventBehavior, findLoop, findLoop, findTransaction, findTransaction, findVirtualUser, finish, getActiveException, getActiveUsersStat, getARM, getBlockedTimeout, getCompletedUsersStat, getDataPoolManager, getDispatchList, getFinishLock, getHistory, getHistoryType, getId, getLoopControl, getLoopControl, getName, getNonPassingVPReported, getParent, getPDLogManager, getPendingException, getQueue, getQueueLength, getResultInteger, getResultObject, getResultString, getRtbEnabled, getRunStat, getStartTime, getState, getStatisticsLevel, getStatisticsManager, getStatTree, getStopRequested, getStopTime, getSubsystem, getTestLogManager, getTime, getTotalUsersStat, getTransaction, getValue, getVirtualUserGUID, getWaitingForActions, getWorkBenchHostName, getWorkBenchUserId, getWorkerThread, handleException, hasFinished, hasStarted, isRtbDisabled, isRtbEnabled, isRunning, isScheduleRun, log, log, log, log, makeVerdict, postFinish, printKActionTrace, processRegisteredEvents, processThrowable, reducePermits, registerEvent, registerVerdict, registerVerdict, release, release, reportEvent, reportMessage, reportVerdict, reportVerdict, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, resetAction, rollupNetServerTime, run, setActiveException, setBlockedTimeout, setDispatchingAction, setHistory, setHistoryType, setId, setParent, setPendingException, setResultInteger, setResultObject, setResultString, setResultString, setRtbEnabled, setStatisticsLevel, setStatTree, setValue, start, stop, stopAction, tryAcquire, tryAcquire, wouldARM, wouldLog, wouldReportHistory, wouldReportHistory, wouldReportHistory, wouldReportStatistics, writeEvent
 
Methods inherited from class com.ibm.rational.test.lt.kernel.impl.Countable
addCounter, getCounter, getCounters, resetCounters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.rational.test.lt.kernel.action.IKAction
abandon, addEventBehavior, blocked, executeAction, executionTime, finish, getBlockedTimeout, getHistory, getHistoryType, getId, getName, getParent, getResultInteger, getResultObject, getResultString, getRtbEnabled, getStatTree, getStopRequested, getSubsystem, getWorkerThread, hasFinished, hasStarted, isRunning, setBlockedTimeout, setDispatchingAction, setHistory, setHistoryType, setId, setResultInteger, setResultObject, setResultString, setResultString, setRtbEnabled, setStatTree, start, stop, stopAction
 
Methods inherited from interface com.ibm.rational.test.lt.kernel.ICountable
addCounter, getCounter, getCounters, resetCounters
 
Methods inherited from interface com.ibm.rational.test.lt.kernel.logging.IKLog
getStatisticsLevel, getVirtualUserGUID, log, log, log, log, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, reportVerificationPoint, wouldARM, wouldLog, wouldReportHistory, wouldReportHistory, wouldReportStatistics
 
Methods inherited from interface com.ibm.rational.test.lt.kernel.action.IKSemaphore
acquire, availablePermits, getQueue, getQueueLength, reducePermits, release, release, toString, tryAcquire, tryAcquire
 
Methods inherited from interface com.ibm.rational.test.lt.kernel.services.ITestExecutionServices
getARM, getLoopControl, getPDLogManager, getStatisticsManager, getTestLogManager, getTime, getTransaction, getValue, setValue
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

LTTestScript

public LTTestScript(IContainer parent)

LTTestScript

public LTTestScript(IContainer parent,
                    String name)

LTTestScript

public LTTestScript(IContainer parent,
                    String name,
                    String id)

LTTestScript

public LTTestScript(IContainer parent,
                    String name,
                    String id,
                    String scriptId)
Method Detail

getArmEnabled

public boolean getArmEnabled()
Description copied from interface: IArmable
Get armEnabled flag for this KAction

Specified by:
getArmEnabled in interface IArmable
Returns:
armEnabled flag value

getArmInfo

public ArmInfo getArmInfo()
Description copied from interface: IArmable
Get ArmInfo object for this KAction

Specified by:
getArmInfo in interface IArmable
Returns:
armInfo object

setArmEnabled

public void setArmEnabled(boolean enabled)
Description copied from interface: IArmable
Set armEnabled flag for this KAction

Specified by:
setArmEnabled in interface IArmable
Parameters:
enabled - value to be set

setArmInfo

public void setArmInfo(ArmInfo info)
Description copied from interface: IArmable
Set ArmInfo object for this KAction

Specified by:
setArmInfo in interface IArmable
Parameters:
info - object to be set

armActive

public boolean armActive()

getStartEvent

public org.eclipse.hyades.test.common.event.TypedEvent getStartEvent()
Specified by:
getStartEvent in interface IContainer
Overrides:
getStartEvent in class com.ibm.rational.test.lt.kernel.action.impl.KScript

getStopEvent

public org.eclipse.hyades.test.common.event.TypedEvent getStopEvent()
Specified by:
getStopEvent in interface IContainer
Overrides:
getStopEvent in class com.ibm.rational.test.lt.kernel.action.impl.KScript

execute

public void execute()
LTTestScript execute understands ARM.

Specified by:
execute in interface IKAction
Overrides:
execute in class com.ibm.rational.test.lt.kernel.action.impl.KScript
See Also:
IKAction.execute()

preFinish

public void preFinish()
Overrides:
preFinish in class com.ibm.rational.test.lt.kernel.action.impl.KContainer

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.