com.mercury.ftjadin.infra
Class AgentRecordMode

java.lang.Object
  extended bycom.mercury.ftjadin.infra.AgentRecordMode

public final class AgentRecordMode
extends java.lang.Object

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 AgentRecordModeDISCARD_TIMER
          Discard any recorded operation not yet written to the UFT GUI test.
static AgentRecordModeFLUSH_TIMER
          If there is a recorded operation waiting during a delay period, send it to the UFT GUI test now.
static AgentRecordModeNORMAL_RECORD
          Send the recorded operation to the UFT GUI test without delay.
static AgentRecordModeTIMER_RECORD
          Send the recorded operation to the UFT GUI test after a delay.
 
Method Summary
 intcode()
          Returns the current record mode.
 intgetQTMode(boolean replace)
          Gets the UFT send mode matching this record mode.
 booleanisConditionalMode()
          Checks if the current mode indicates a recording instruction.
 booleanisTimerSignalMode()
          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.