com.mercury.ftjadin.infra
Class AgentRecordMode
java.lang.Object com.mercury.ftjadin.infra.AgentRecordMode
- extends java.lang.Object
public final class AgentRecordMode
The AgentRecordMode class specifies the time qualifiers for recording. Recording can be immediate or delayed, and the delayed operations buffer can be flushed (written immediately) or discarded.
Field Summary | |
---|---|
static AgentRecordMode | DISCARD_TIMER Discard any recorded operation not yet written to the UFT GUI test. |
static AgentRecordMode | FLUSH_TIMER If there is a recorded operation waiting during a delay period, send it to the UFT GUI test now. |
static AgentRecordMode | NORMAL_RECORD Send the recorded operation to the UFT GUI test without delay. |
static AgentRecordMode | TIMER_RECORD Send the recorded operation to the UFT GUI test after a delay. |
Method Summary | |
---|---|
int | code() Returns the current record mode. |
int | getQTMode(boolean replace) Gets the UFT send mode matching this record mode. |
boolean | isConditionalMode() Checks if the current mode indicates a recording instruction. |
boolean | isTimerSignalMode() Checks if the current mode indicates an instruction on the timer buffer. |
Field Detail |
---|
NORMAL_RECORD
public static final AgentRecordMode NORMAL_RECORD
- Send the recorded operation to the UFT GUI test without delay.
TIMER_RECORD
public static final AgentRecordMode TIMER_RECORD
- Send the recorded operation to the UFT GUI test after a delay.
FLUSH_TIMER
public static final AgentRecordMode FLUSH_TIMER
- If there is a recorded operation waiting during a delay period, send it to the UFT GUI test now.
DISCARD_TIMER
public static final AgentRecordMode DISCARD_TIMER
- Discard any recorded operation not yet written to the UFT GUI test.
Method Detail |
---|
code
public int code()
- Returns the current record mode.
isTimerSignalMode
public boolean isTimerSignalMode()
- Checks if the current mode indicates an instruction on the timer buffer.
- Returns:
- True if the mode is either FLUSH_TIMER or DISCARD_TIMER.
isConditionalMode
public boolean isConditionalMode()
- Checks if the current mode indicates a recording instruction.
- Returns:
- True if the mode is either NORMAL_RECORD or TIMER_RECORD.
getQTMode
public int getQTMode(boolean replace)
- Gets the UFT send mode matching this record mode.
The send mode is determined by the record mode and whether the timer object is replaced when the new message target object is the same as the timer record target. - Parameters:
replace
- Indicates whether the timer object is replaced.- Returns:
- One of the
SendMode
constants:
REPLACE_AND_SEND_LINE or SEND_LINE for the NORMAL_RECORD mode;
REPLACE_AND_KEEP_LINE or KEEP_LINE for the TIMER_RECORD mode;
STORED_LINE for the FLUSH_TIMER mode or CLEAN_UP for the DISCARD_TIMER mode.