public interface ITestExecutionServices
ITestExecutionServices provides a number of methods for use in
ICustomCode2
. Each of these methods returns
an object that provides further services in that area.
Modifier and Type | Field and Description |
---|---|
static String |
STORAGE_ENV |
static String |
STORAGE_LOCAL |
static String |
STORAGE_SYSTEM |
static String |
STORAGE_USER |
Modifier and Type | Method and Description |
---|---|
IDataArea |
findDataArea(String name)
Returns an
IDataArea object for the named DataArea
or null if no such DataArea exists. |
IARM |
getARM()
Retuns an
IARM object that exposes ARM (Application Response Measurement)-related methods. |
ILoopControl |
getLoopControl()
Returns an
ILoopControl object that provides
methods for limited control of the nearest enclosing loop in a performance test or schedule. |
IPDLogManager |
getPDLogManager()
Returns an
IPDLogManager object that provides
methods for writing messages into the problem determination log from custom code actions. |
IStatisticsManager |
getStatisticsManager()
Returns an
IStatisticsManager object that provides
methods for creating and reporting statistical model counters. |
ITestLogManager |
getTestLogManager()
Returns an
ITestLogManager object that provides
methods for writing events, such as messages and verification points, to the TestLog (execution history). |
ITime |
getTime()
Returns an
ITime object that provides basic time methods used to synchronize all the computers in a performance test run, and to record the test start and elapsed time. |
ITransaction |
getTransaction(String label)
Asserts that an
ITransaction object with the
given label exists in the virtual tester's transaction collection and returns
a reference to that transaction object. |
String |
getValue(String varname,
String storageLocation)
This method allows you to get the value of a variable, the variable name to be used
is the same one that exists in the Test Variables section.
|
void |
setValue(String varname,
String storageLocation,
String newValue)
This method allows you to set the value of a variable, the variable name to be used
is the same one that exists in the Test Variables section.
|
static final String STORAGE_LOCAL
static final String STORAGE_USER
static final String STORAGE_ENV
static final String STORAGE_SYSTEM
IARM getARM()
IARM
object that exposes ARM (Application Response Measurement)-related methods. These methods apply to virtual users that are being sampled for ARM processing.IARM
object that exposes ARM-related methods.IDataArea findDataArea(String name)
IDataArea
object for the named DataArea
or null
if no such DataArea exists.
Three publicly accessible data areas are provided:
|
Owned by the engine and contains objects that apply to the entire engine and persist for the duration of the test run. |
|
Owned by the virtual user container and contains objects that persist for the life of the virtual user. |
|
Owned by the KScript container (which all tests extend) and contains objects that persist for the duration of the individual test script. |
Other DataAreas might be provided for specific protocols. |
name
- IDataArea
object for the named DataArea
or null
if no such DataArea exists.ILoopControl getLoopControl()
ILoopControl
object that provides
methods for limited control of the nearest enclosing loop in a performance test or schedule.ILoopControl
object that provides
methods for limited control of the nearest enclosing loop.IPDLogManager getPDLogManager()
IPDLogManager
object that provides
methods for writing messages into the problem determination log from custom code actions.IPDLogManager
object that provides
methods for writing messages into the problem determination log.IStatisticsManager getStatisticsManager()
IStatisticsManager
object that provides
methods for creating and reporting statistical model counters. These counters can then be accessed
through the performance test reports.IStatisticsManager
object that provides
methods for creating and reporting statistical model counters.ITestLogManager getTestLogManager()
ITestLogManager
object that provides
methods for writing events, such as messages and verification points, to the TestLog (execution history).ITestLogManager
object that provides
methods for writing events to the TestLog (execution history).ITime getTime()
ITime
object that provides basic time methods used to synchronize all the computers in a performance test run, and to record the test start and elapsed time.ITime
object that provides basic time methods.ITransaction getTransaction(String label)
ITransaction
object with the
given label exists in the virtual tester's transaction collection and returns
a reference to that transaction object.label
- ITransaction
object with the
given label in the virtual tester's transaction collection.String getValue(String varname, String storageLocation)
varname
- - the name of the variable to get the value forstorageLocation
- - the location to get the variable from, currently the
only options are ITestExecutionServices.STORAGE_LOCAL and ITestExecutionServices.STORAGE_USERvoid setValue(String varname, String storageLocation, String newValue)
varname
- - the name of the variable to be setstorageLocation
- - the location to store the variable, currently the options are
ITestExecutionServices.STORAGE_LOCAL and ITestExecutionServices.STORAGE_USERnewValue
- © Copyright IBM Corp. 2013. All rights reserved.