|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IVirtualUserInfo interface provides information about the virtual user.
This interface is implemented by the object stored in the VirtualUserDataArea
DataArea
under the key VirtualUserInfo
. This object is accessed from ICustomCode2
by calling
ITestExecutionServices
.findDataArea(IDataArea
.VIRTUALUSER).get(IVirtualUserInfo.KEY)
IDataArea
,
ITestExecutionServices
Field Summary | |
---|---|
static java.lang.String |
KEY
Key for the supplied IVirtualUserInfo object in the virtual user's DataArea. |
Method Summary | |
---|---|
int |
getPDLogLevel()
Returns the Problem Determination Log level that is effective for the current test. |
java.util.Random |
getRandom()
Returns the virtual user's random number generator. |
int |
getTestLogLevel()
Returns the TestLog level that is effective for the current virtual user. |
int |
getUID()
Returns the virtual user's globally unique id. |
java.lang.String |
getUserGroupName()
Returns the name of the user group to which this virtual user belongs. |
java.lang.String |
getUserName()
Returns the name of the virtual user. |
int |
popPDLogLevel()
Pops the Problem Determination Log level stack. |
int |
popTestLogLevel()
Pops the TestLog level stack. |
void |
pushPDLogLevel(int level)
Pushes the given Problem Determination Log level onto the virtual user's stack. |
void |
pushTestLogLevel(int level)
Pushes the given TestLog level onto the virtual user stack. |
int |
setPDLogLevel(int level)
Sets the Problem Determination Log level for the remainder of the current virtual user to the given level. |
int |
setTestLogLevel(int level)
Sets the TestLog level for the remainder of the current virtual user's execution to the given level. |
Field Detail |
public static final java.lang.String KEY
Method Detail |
public java.util.Random getRandom()
public int getUID()
public java.lang.String getUserName()
public java.lang.String getUserGroupName()
public int getPDLogLevel()
public int setPDLogLevel(int level)
The Problem Determination Log level is kept on a stack for the virtual user. Setting the level is equivalent to popping the stack (if it is not empty) and pushing the new level.
level
- The new Problem Determination Log level.
pushPDLogLevel()
,
popPDLogLevel()
public void pushPDLogLevel(int level)
This changes the effective Problem Determination Log level for the remainder of the virtual user's execution.
level
- The new Problem Determination Log level.popPDLogLevel
public int popPDLogLevel()
This restores the effective Problem Determination Log level to the value previous to the last push.
pushPDLogLevel()
public int getTestLogLevel()
public int setTestLogLevel(int level)
The TestLog level is kept on a stack for the virtual user. Setting the level is equivalent to popping the stack (if it is not empty) and pushing the new level.
level
- The new TestLog level.
pushTestLogLevel()
,
popTestLogLevel()
public void pushTestLogLevel(int level)
This changes the effective TestLog level for the remainder of the virtual user's execution.
level
- The new TestLog level.popTestLogLevel
public int popTestLogLevel()
This restores the effective TestLog level to the value before the last push.
pushTestLogLevel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |