public class CFToolBar extends CFComponent
ComponentFunction.Window
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLICKBUTTONINDEX |
static java.lang.String |
CLICKBUTTONTEXT |
static java.lang.String |
CLICKBUTTONTOOLTIP |
static java.lang.String |
CLICUNVERIFIEDKBUTTONTEXT |
static java.lang.String |
PATH_SEPARATOR |
static java.lang.String |
TYPETEXT |
static java.lang.String |
TYPETOOLTIP |
keepEncodingConsistent, obj1, script, winObject
action, ALTCLICK, ALTLEFTDRAG, altText, ASSIGNPROPERTYVARIABLE, CAPTUREOBJECTDATATOFILE, CAPTUREPROPERTIESTOFILE, CAPTUREPROPERTYTOFILE, CLEARAPPMAPCACHE, CLICK, CLOSEWINDOW, compName, COMPONENTCLICK, CTRLALTLEFTDRAG, CTRLCLICK, CTRLLEFTDRAG, CTRLRIGHTCLICK, CTRLSHIFTLEFTDRAG, DOUBLECLICK, GETGUIIMAGE, GETTEXTFROMGUI, GUIDOESEXIST, GUIDOESNOTEXIST, HOVERMOUSE, HSCROLLTO, INPUTCHARACTERS, INPUTKEYS, ISPROPERTYEXIST, iterator, LEFTDRAG, LOCATESCREENIMAGE, mapname, MAXIMIZE, MINIMIZE, MOUSECLICK, OBJECT_DATA, PARAM_FILTER, PARAM_UUID, PROPERTY_DOT_itemText, PROPERTY_innerHTML, PROPERTY_innerText, PROPERTY_Items, PROPERTY_text, PROPERTY_textContent, RELATIVE_TO_PARENT, RELATIVE_TO_SCREEN, RESTORE, RIGHTCLICK, RIGHTDRAG, SAVETEXTFROMGUI, SELECTMENUITEM, SELECTMENUITEMCONTAINS, SENDEVENT, SETPOSITION, SETPROPERTYVALUE, SHIFTCLICK, SHIFTLEFTDRAG, TEST_DATA_SUFFIX, utils, VERIFYARRAYPROPERTYTOFILE, VERIFYBINARYFILETOFILE, VERIFYCLIPBOARDTOFILE, VERIFYFILETOFILE, VERIFYGUIIMAGETOFILE, VERIFYMENUITEM, VERIFYMENUITEMCONTAINS, VERIFYOBJECTDATATOFILE, VERIFYPROPERTY, VERIFYPROPERTYCONTAINS, VERIFYPROPERTYTOFILE, VERIFYTEXTFILETOFILE, VERIFYVALUECONTAINS, VERIFYVALUEEQUALS, VERIFYVALUES, VERIFYVALUESIGNORECASE, VSCROLLTO, WAITFORGUI, windowName
breakpointsOn, CASE_INSENSITIVE_FLAG, CASEINSENSITIVE_FLAG, clearProxiesAlways, commandLineBreakpoint, customStr, customText, DEBUG_MESSAGE, debugStr, debugText, DEFAULT_CUSTOM_PROCESSOR_PACKAGE, DEFAULT_CUSTOM_PROCESSOR_SUBPACKAGE, DEFAULT_PROCESSOR_PACKAGE, FAILED_MESSAGE, FAILED_OK_MESSAGE, failedStr, failedText, FAILURE_DETAIL, GENERIC_MESSAGE, genericStr, genericText, LINE_FAILURE_4, log, myBreakpointsOn, otherStr, otherText, PARAM_SIZE_1, PARAM_SIZE_2, PARAM_SIZE_3, PARAM_SIZE_4, params, PASSED_MESSAGE, passedStr, passedText, PRE_TXT_SUCCESS_4, PRE_TXT_SUCCESS_5, processorConfigSet, processorMap, recordProcessed, RECTYPE_DRIVER_COMMAND, RECTYPE_DRIVER_COMMAND_F, RECTYPE_DRIVER_COMMAND_W, RECTYPE_TEST_STEP, RECTYPE_TEST_STEP_F, RECTYPE_TEST_STEP_W, RFSMCache, RFSMOnly, RFT_FIND_SEARCH_MODE_ALGORITHM, RFT_FIND_SEARCH_MODE_CACHE, SAFS_CLEARPROXIESALWAYS_ITEM, SAFS_COMMANDLINEBREAKPOINT_ITEM, SAFS_COMMANDLINEBREAKPOINT_VARIABLE, SAFS_PARAMS_FILE, SAFS_RESBUN_NAME, SAFS_SECSWAITFORCOMPONENT_ITEM, SAFS_SECSWAITFORCOMPONENT_VARIABLE, SAFS_SECSWAITFORWINDOW_ITEM, SAFS_SECSWAITFORWINDOW_VARIABLE, SAFS_TESTDOMAINS_ITEM, SAFS_TESTDOMAINS_VARIABLE, secsWaitForComponent, secsWaitForWindow, SENT_MSG_3, testDomains, testRecordData, testrecordStackable, TXT_FAILURE_1, TXT_FAILURE_2, TXT_FAILURE_3, TXT_FAILURE_4, TXT_FAILURE_5, TXT_SUCCESS_1, TXT_SUCCESS_2, TXT_SUCCESS_2a, TXT_SUCCESS_3, TXT_SUCCESS_3a, TXT_SUCCESS_4, TXT_SUCCESS_5, unexpectedAlertBehaviour, WARNING_MESSAGE, WARNING_OK_MESSAGE, warningStr, warningText
Constructor and Description |
---|
CFToolBar()
Purpose: constructor, calls super |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
clickButtonIndex(java.lang.String indexString) |
protected java.lang.String |
clickButtonText(java.lang.String textOrPath,
boolean toVerify)
If textOrPath is a single, click on the item whose text match to the parameter in this toolbar.
|
protected java.lang.String |
clickButtonTooltip(java.lang.String tooltip) |
protected TestObject |
getFirstMatchingPathTestObject(TestObject testObject,
boolean caseInsensitive,
java.lang.String path,
java.lang.String pathSeparator)
Get the first matched object from children of parameter testObject.
|
protected TestObject |
getMatchedTestObjectFromChildren(TestObject toolbarObject,
boolean caseInsensitive,
java.lang.String stringToMatch,
java.lang.String matchType) |
protected java.lang.String |
getObjectText(TestObject testObject)
Try to get the text of the testObject.
|
protected java.lang.String |
getObjectTooltip(TestObject testObject)
Try to get the tooltip of the testObject.
|
protected boolean |
isOnSelectedState(GuiTestObject guiTestObject)
Verify if the item's state is selected.
|
protected void |
localProcess()
Purpose: process: process the testRecordData This is our specific version. |
protected void |
performActionWithOneParameter()
Purpose: Perform ClickAtIndex ClickAtTooltip
|
protected boolean |
performClick(GuiTestObject testObject,
java.awt.Point point)
Try to perform a click on the given GuiTestObject, if RFT API click() can not work then
try to invoke some native call to perform click.
|
_maximize, _minimize, _restore, _setPosition, _setSize, captureObjectData, captureObjectDataToFile, capturePropertiesToFile, capturePropertyToFile, clearAppMapCache, closeWindow, componentClick, convertObjectValueToString, exist, extractTreeItemsSub, findMenuBars, formatObjectData, getAppletsBrowser, getComponentRectangle, getComponentRectangleOnScreen, getHelpers, getKeepEncodingConsistent, getObjectProperty, getObjectPropertyFromProperties, getProperties, getPropertyObject, getUserObject, getWindowRectangleOnScreen, inputKeystrokes, isDotnetDomain, isFlexDomain, isHtmlDomain, isJavaDomain, isSwtDomain, isSWTWidget, isWinDomain, listAllProperties, listAllProperties, listMethods, listNonValueProperties, listProperties, matchedPathOfMenuItem, mouseClick, parseWhereInfo, performClick, performDrag, performHoverMouse, performScorll, process, selectMenuItem, sendEvent, sendFlexEvent, setKeepEncodingConsistent, setPropertyValue, tobj, verifyClipboardToFile, verifyFileToFile, verifyMenuItem, verifyObjectDataToFile, verifyPropertyContains, verifyPropertyToFile, verifyValueContains, verifyValues
_close, action_ComputedStyle, action_getGuiImage, action_GetSaveTextFromGUI, action_showOnPage, action_verifyGuiImageToFile, assignPropertyVariable, captureObjectData, checkForCoord, checkForCoord, clearCache, close, componentExecutedFailureMessage, componentFailureMessage, componentProcess, componentSuccessMessage, convertCoords, convertLine, convertNum, convertWindowPosition, ConvertWindowPosition, deduceImageRect, dragTo, executeScript, getAlternateParams, getHelpersWorker, getPossibleMapItem, getProperty, getPropertyCollection, getPropertyCollection, getRectangleImage, getStringValue, getUUIDBoolean, guiDoesExist, hoverMouse, hoverScreenLocation, isClickAction, isPropertyExist, issueFileErrorFailure, issueParameterCountFailure, issueParameterCountFailure, issueParameterValueFailure, issuePassedSuccess, issuePassedSuccessUsing, issueUnknownErrorFailure, isSupportedRecordType, locateScreenImage, lookupAppMapCoordReference, lookupAppMapLineReference, lookupAppMapNumReference, lookupAppMapReference, maximize, minimize, normalizeFileEncoding, normalizePropertyCollection, restore, setIterator, setPosition, setRectVars, showComponentAsMuchPossible, updateFromTestRecordData, verifyPropertiesToFile, verifyProperty, waitForGUI, waitForObject
activateBreakpoint, checkBreakpoints, checkMyBreakpoints, deduceBenchFile, deduceDiffFile, deduceProjectFile, deduceTestFile, delay, distributeConfigInformation, getAbsolutFileName, getAppMapItem, getChainedProcessor, getClassInstance, getClearProxiesAlways, getCustomProcClassNames, getCustomProcInstancePath, getLogUtilities, getParams, getProcClassNames, getProcInstance, getProcInstancePath, getRequiredField, getSecsWaitForComponent, getSecsWaitForWindow, getStandardErrorMessage, getTestRecordData, getUnexpectedAlertBehaviour, getVariable, hasChainedProcessor, initProcessorAndProcess, instanceProcessorAndProcess, isBreakpointsOn, isComponentFunctionRecord, isDriverCommandRecord, isEngineCommandRecord, isMyBreakpointsOn, isRecordProcessed, isRFSMCache, isRFSMOnly, issueActionFailure, issueActionOnXFailure, issueErrorPerformingAction, issueErrorPerformingActionOnX, issueErrorPerformingActionUsing, issueInputRecordFailure, issueInputRecordFailure, issuePassedSuccess, logFailureMessage, normalizeTestFileName, paramsFailedMsg, paramsFailedMsg, popTestRecord, processCustomProcessor, processSubclassProcessor, pushTestRecord, setAtEndOfProcess, setBreakpointsOn, setChainedProcessor, setClearProxiesAlways, setCommandLineBreakpoint, setCustomProcInstancePath, setLogUtilities, setMyBreakpointsOn, setParams, setProcInstance, setProcInstancePath, setRecordProcessed, setRFSMCache, setRFSMOnly, setSecsWaitForComponent, setSecsWaitForWindow, setTestDomains, setTestRecordData, setUnexpectedAlertBehaviour, setVariable, standardFailureMessage, substituteVariable, validateParamSize, validProcessorClassName
public static final java.lang.String CLICKBUTTONINDEX
public static final java.lang.String CLICKBUTTONTOOLTIP
public static final java.lang.String CLICKBUTTONTEXT
public static final java.lang.String CLICUNVERIFIEDKBUTTONTEXT
public static final java.lang.String TYPETEXT
public static final java.lang.String TYPETOOLTIP
public static final java.lang.String PATH_SEPARATOR
protected void localProcess()
Processor.testRecordData
statusCode is set
based on the result of the processing
Processor.testRecordData
, Processor.params
localProcess
in class CFComponent
protected void performActionWithOneParameter() throws SAFSException
SAFSException
protected java.lang.String clickButtonIndex(java.lang.String indexString) throws SAFSException
SAFSException
protected java.lang.String clickButtonTooltip(java.lang.String tooltip) throws SAFSException
SAFSException
protected java.lang.String clickButtonText(java.lang.String textOrPath, boolean toVerify) throws SAFSException
textOrPath
- The text can be a single string or a string containning "->"toVerify
- If true, verify the item's state is checked.SAFSException
protected boolean isOnSelectedState(GuiTestObject guiTestObject)
guiTestObject
- protected boolean performClick(GuiTestObject testObject, java.awt.Point point) throws SAFSException
testObject
- A GuiTestObejctpoint
- The point inside the testObject at where the mouse should click.SAFSException
protected java.lang.String getObjectTooltip(TestObject testObject)
testObject
- protected java.lang.String getObjectText(TestObject testObject)
testObject
- protected TestObject getMatchedTestObjectFromChildren(TestObject toolbarObject, boolean caseInsensitive, java.lang.String stringToMatch, java.lang.String matchType)
toolbarObject
- The toolbar contains every kinds of items.caseInsensitive
- True if match with case insensitive.stringToMatch
- Text or Path or Tooltip to be matchedmatchType
- It can be "Text" or "Tooltip", which are defined as constant TYPETEXT and TYPETOOLTIPprotected TestObject getFirstMatchingPathTestObject(TestObject testObject, boolean caseInsensitive, java.lang.String path, java.lang.String pathSeparator)
testObject
- A tree object from which we search a mathced object.caseInsensitive
- If true, use String.equalsIgnoreCase() to match text.path
- A string like "a->b->c"pathSeparator
- A stirng like "->", which is used to separate node text.Copyright © SAS Institute. All Rights Reserved.