public class ComponentFunction extends AbstractCommand
_parameters, BLOCKID_RECORD_TYPE, BREAKPOINT_RECORD_TYPE, COMPONENT_FUNCTION_FAILOK_RECORD_TYPE, COMPONENT_FUNCTION_RECORD_TYPE, COMPONENT_FUNCTION_WARNOK_RECORD_TYPE, DRIVER_COMMAND_FAILOK_RECORD_TYPE, DRIVER_COMMAND_RECORD_TYPE, DRIVER_COMMAND_WARNOK_RECORD_TYPE, EMPTY_PARAMETER, ENGINE_COMMAND_FAILOK_RECORD_TYPE, ENGINE_COMMAND_RECORD_TYPE, ENGINE_COMMAND_WARNOK_RECORD_TYPE, PROJECT_COMMAND_RECORD_TYPE, SKIPPED_RECORD_TYPE| Constructor and Description |
|---|
ComponentFunction(java.lang.String functionName,
java.lang.String windowName,
java.lang.String componentName)
Create an instance of a ComponentFunction command to act on a specific component.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.StringBuffer |
appendCommandToTestRecord(java.lang.StringBuffer sb,
java.lang.String fieldSeparator)
Overrides superclass to append the windowname and componentname before
invoking super.appendCommandToTestRecord to append the actual command.
|
java.lang.String |
getComponentName()
Retrieve the name of the component to act upon.
|
java.lang.String |
getTestRecordID()
Returns the string record type for this command.
|
java.lang.String |
getWindowName()
Retrieves the name of the window to act upon.
|
boolean |
isFailureOK()
Indicates if a failure is acceptable for this ComponentFunction.
|
boolean |
isWarningOK()
Indicates if a warning is acceptable for this ComponentFunction.
|
void |
setFailureOK(boolean newValue)
Sets whether a failure is acceptable for this ComponentFunction.
|
void |
setWarningOK(boolean newValue)
Sets whether a warning is acceptable for this ComponentFunction.
|
exportTestRecord, getCommandNameaddParameter, addParameters, appendParametersToTestRecord, getParameterspublic ComponentFunction(java.lang.String functionName,
java.lang.String windowName,
java.lang.String componentName)
functionName - -- the action keyword ("Click", "Select", etc.)windowName - -- the name of the Window on which to actcomponentName - -- the name of the Component within the window to act uponjava.lang.IllegalArgumentException - if these parameters are null or zero-lengthpublic java.lang.String getWindowName()
public java.lang.String getComponentName()
protected java.lang.StringBuffer appendCommandToTestRecord(java.lang.StringBuffer sb,
java.lang.String fieldSeparator)
appendCommandToTestRecord in class AbstractCommandsb - StringBuffer to append fields tofieldSeparator - character to append in between fieldspublic final boolean isWarningOK()
true if a warning is acceptable, otherwise falsesetWarningOK(boolean)public final void setWarningOK(boolean newValue)
If a warning is set as acceptable, setFailureOK(false)
is called to turn off failures.
newValue - true to indicate that warnings are acceptable, otherwise falseisWarningOK()public final boolean isFailureOK()
true if a failure is acceptable, otherwise falsesetFailureOK(boolean)public final void setFailureOK(boolean newValue)
If a failure is set as acceptable, setWarningOK(false)
is called to turn off warnings.
newValue - true to indicate that failures are acceptable, otherwise falseisFailureOK()public java.lang.String getTestRecordID()
failureOK is true
warningOK is true
failureOK and warningOK are false
getTestRecordID in class AbstractCommandCopyright © SAS Institute. All Rights Reserved.