public class SocketTestRecordHelper extends TestRecordHelper
TestRecordHelper.MySTAFRequester
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
processRemotely |
(package private) java.util.Properties |
props
Keyword-specific properties/values passed via a SocketServer to a remote engine.
|
requester
POSSIBLE_SEPARATOR
Constructor and Description |
---|
SocketTestRecordHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addKeywordProperty(java.lang.String propname,
java.lang.String propvalue)
Add a keyword property to the Properties list.
|
int |
getCommandTimeout() |
java.util.Properties |
getKeywordProperties()
Can be null if no additional properties/values are needed for remote execution.
|
java.lang.String |
getKeywordProperty(java.lang.String propname)
Get a keyword property from the Properties list.
|
int |
getReadyTimeout() |
int |
getRunningTimeout() |
boolean |
processRemotely() |
void |
reinit()
Set our added fields to their default values during each command initialization:
setKeywordProperties(false); setProcessRemotely(false); |
void |
setCommandTimeout(int commandTimeout)
Every command might want to change its default timeout.
|
void |
setKeywordProperties(java.util.Properties _props)
Can set to null if no additional properties/values are needed for remote execution.
|
void |
setProcessRemotely(boolean processRemotely)
Keyword implementors will set this to true if the keyword is expecting a remote
engine to complete the processing of the inputrecord.
|
void |
setReadyTimeout(int readyTimeout)
Every command might want to change its default timeouts.
|
void |
setRunningTimeout(int runningTimeout)
Every command might want to change its default timeouts.
|
getCompGuiId, getCompInstancePath, getConfig, getDDGUtils, getStaf, getSTAFHelper, getWindowGuiId, isMixedRsUsed, populateDataFromVar, sendbackResponse, setConfig, setDDGUtils, setSTAFHelper, targetIsComponent, targetIsWindow
copyData, getAltCompType, getAppMapName, getCommand, getCompClass, getCompModule, getCompName, getCompType, getEnvironment, getFac, getFileID, getFilename, getInputRecord, getInputRecordToken, getInstanceName, getLineNumber, getNotSeparatorString, getRecordType, getSeparator, getStatusCode, getStatusInfo, getTestLevel, getTrimmedUnquotedInputRecordToken, getWinCompName, getWindowName, inputRecordSize, setAltCompType, setAppMapName, setCommand, setCompClass, setCompGuiId, setCompModule, setCompName, setCompType, setEnvironment, setFac, setFileID, setFilename, setInputRecord, setInstanceName, setLineNumber, setRecordType, setSeparator, setShutdownData, setStatusCode, setStatusInfo, setTestLevel, setWindowGuiId, setWindowName, toString
java.util.Properties props
boolean processRemotely
public java.util.Properties getKeywordProperties()
public void setKeywordProperties(java.util.Properties _props)
public void addKeywordProperty(java.lang.String propname, java.lang.String propvalue)
propname
- case-insensitive name of the property. It will be stored
and transmitted in lowerCase.propvalue
- case-sensitive value for the property.public java.lang.String getKeywordProperty(java.lang.String propname)
propname
- case-insensitive name of the property. It will be converted
to lowerCase before use.public boolean processRemotely()
public void setProcessRemotely(boolean processRemotely)
processRemotely
- set true if the underlying engine is expected to dispatch the command to
a remote engine. set false if the keyword was handled locally in its entirety.public int getCommandTimeout()
public void setCommandTimeout(int commandTimeout)
commandTimeout
- -- number of seconds to wait for "Results" after Running before a
timeout is suspected.public int getReadyTimeout()
public void setReadyTimeout(int readyTimeout)
readyTimeout
- - number of seconds to wait for "Ready" before Dispatch before a
timeout is suspected.public int getRunningTimeout()
public void setRunningTimeout(int runningTimeout)
runningTimeout
- - number of seconds to wait for Running after Dispatch before a
timeout is suspected.public void reinit()
reinit
in class TestRecordData
TestRecordData.reinit()
Copyright © SAS Institute. All Rights Reserved.