|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ITestInfo interface provides information about the test that is currently executing.
ITestInfo is implemented by the object stored in the TestDataArea
DataArea
under the key TestInfo
. This object is accessed from ICustomCode2
by calling
ITestExecutionServices
.findDataArea(IDataArea
.TEST).get(ITestInfo.KEY)
IDataArea
,
ITestExecutionServices
Field Summary | |
---|---|
static java.lang.String |
KEY
Key for the ITestInfo object in the test's DataArea, |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of the current test. |
int |
getPDLogLevel()
Returns the Problem Determination Log level that is effective for the current test. |
int |
getTestLogLevel()
Returns the TestLog level that is effective for the current test. |
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 test's stack. |
void |
pushTestLogLevel(int level)
Pushes the given TestLog level onto the test's stack. |
int |
setPDLogLevel(int level)
Sets the Problem Determination Log level for the remainder of the current test to the given level. |
int |
setTestLogLevel(int level)
Sets the TestLog level for the remainder of the current test to the given level. |
Field Detail |
public static final java.lang.String KEY
Method Detail |
public java.lang.String getName()
public int getPDLogLevel()
public int setPDLogLevel(int level)
The Problem Determination Log level is kept on a stack for the test. 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 test.
level
- The new Problem Determination Log level.popPDLogLevel
public int popPDLogLevel()
This restores the effective Problem Determination Log level to its value before the last push.
pushPDLogLevel()
public int getTestLogLevel()
public int setTestLogLevel(int level)
The TestLog level is kept on a stack for the test. 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 test.,/p>
level
- The new TestLog level.popTestLogLevel
public int popTestLogLevel()
This restores the effective TestLog level to its value before the last push.
pushTestLogLevel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |