public class DefaultTestRecordStackable extends java.lang.Object implements ITestRecordStackable
Modifier and Type | Field and Description |
---|---|
static boolean |
debug
The default value is 'false', so that some debug message will not show in debug log.
|
protected java.util.Stack<TestRecordData> |
testRecordStack
The Stack to hold the 'test records' being processed.
|
Constructor and Description |
---|
DefaultTestRecordStackable() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(java.lang.String msg)
Log a debug log message ONLY if debug log output is enabled.
|
TestRecordData |
popTestRecord()
Retrieve the Test-Record from the top of Stack after the execution of a keyword.
|
void |
pushTestRecord(TestRecordData trd)
Push the current 'test record' into the Stack before the execution of a keyword.
|
public static boolean debug
protected java.util.Stack<TestRecordData> testRecordStack
| 'LogMessage' | |__'CallJUnit'___|
pushTestRecord(TestRecordData)
,
popTestRecord()
public static void debug(java.lang.String msg)
msg
- to be loggeddebug
public void pushTestRecord(TestRecordData trd)
Push the current 'test record' into the Stack before the execution of a keyword. This should be called after the 'test record' is properly set.
pushTestRecord
in interface ITestRecordStackable
trd
- TestRecordData, the test record to push into a stackpopTestRecord()
public TestRecordData popTestRecord()
After execution of a keyword, pop the test record from Stack and return is as the result. In the sub class, we could choose to replace the class field 'Test Record' by that popped from the stack.
popTestRecord
in interface ITestRecordStackable
pushTestRecord(TestRecordData)
Copyright © SAS Institute. All Rights Reserved.