public class CFTree extends CFComponent
ComponentFunction.Window
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVATEUNVERIFIEDTEXTNODE |
static java.lang.String |
CAPTURETREEDATATOFILE |
static java.lang.String |
CLICK |
static java.lang.String |
CLICKPARTIAL |
static java.lang.String |
CLICKUNVERIFIEDTEXTNODE |
static java.lang.String |
COLLAPSE |
static java.lang.String |
COLLAPSEPARTIAL |
static java.lang.String |
COLLAPSEPARTIALTEXTNODE |
static java.lang.String |
COLLAPSETEXTNODE |
static java.lang.String |
COLLAPSEUNVERIFIEDTEXTNODE |
static java.lang.String |
CTRLCLICKUNVERIFIEDTEXTNODE |
static java.lang.String |
DOUBLECLICK |
static java.lang.String |
DOUBLECLICKPARTIAL |
static java.lang.String |
DOUBLECLICKUNVERIFIEDTEXTNODE |
static java.lang.String |
EXPAND |
static java.lang.String |
EXPANDPARTIAL |
static java.lang.String |
EXPANDPARTIALTEXTNODE |
static java.lang.String |
EXPANDTEXTNODE |
static java.lang.String |
EXPANDUNVERIFIEDTEXTNODE |
static java.lang.String |
INDEX_PREFIX |
static java.lang.String |
MAKESELECTION |
static java.lang.String |
METHOD_GETPATH |
static java.lang.String |
METHOD_GETSELECTIONPATHS |
static java.lang.String |
METHOD_TOSTRING |
static java.lang.String |
NODE_DELIMIT |
(package private) boolean |
partialmatch |
static java.lang.String |
PARTIALTREEDATATOFILE |
static java.lang.String |
PROPERTY_USEROBJECT |
static java.lang.String |
RIGHTCLICK |
static java.lang.String |
RIGHTCLICKPARTIAL |
static java.lang.String |
RIGHTCLICKUNVERIFIEDTEXTNODE |
static java.lang.String |
SELECT |
static java.lang.String |
SELECTANOTHERPARTIALTEXTNODE |
static java.lang.String |
SELECTANOTHERTEXTNODE |
static java.lang.String |
SELECTANOTHERUNVERIFIEDTEXTNODE |
static java.lang.String |
SELECTPARTIAL |
static java.lang.String |
SELECTPARTIALTEXTNODE |
static java.lang.String |
SELECTTEXTNODE |
static java.lang.String |
SELECTUNVERFIEDTEXTNODE |
static java.lang.String |
SETTREECONTAINSNODE |
static java.lang.String |
SETTREECONTAINSPARTIAL |
static java.lang.String |
SHIFTCLICKUNVERIFIEDTEXTNODE |
static java.lang.String |
VERIFYNODEUNSELECTED |
static java.lang.String |
VERIFYSELECTEDNODE |
static java.lang.String |
VERIFYTREECONTAINSNODE |
static java.lang.String |
VERIFYTREECONTAINSPARTIAL |
keepEncodingConsistent, obj1, script, winObject
action, ALTCLICK, ALTLEFTDRAG, altText, ASSIGNPROPERTYVARIABLE, CAPTUREOBJECTDATATOFILE, CAPTUREPROPERTIESTOFILE, CAPTUREPROPERTYTOFILE, CLEARAPPMAPCACHE, CLOSEWINDOW, compName, COMPONENTCLICK, CTRLALTLEFTDRAG, CTRLCLICK, CTRLLEFTDRAG, CTRLRIGHTCLICK, CTRLSHIFTLEFTDRAG, 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, 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 |
---|
CFTree()
Purpose: constructor, calls super |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
captureObjectData(TestObject tree)
Overrides CFComponent.captureObjectData.
|
protected void |
captureTreeDataToFile()
Purpose: capture the 'Tree' hierarchy data (from a TestObject) to a file. |
protected void |
commandWithOneParam()
Purpose: commandWithOneParam: process commands like: click, doubleclick, expand and collapse; ones which take one parameter, (the path in the tree). |
protected void |
doDoubleClick(TestObject testObjct,
com.rational.test.ft.script.List path) |
protected void |
doExpand(TestObject testObjct,
com.rational.test.ft.script.List path,
boolean expand) |
protected java.lang.String |
extractRootName(GuiSubitemTestObject gstobj)
Extract the text of the root node.
Note: Swing JTrees only have 1 root node. |
protected java.lang.String |
extractSWTRootName(GuiSubitemTestObject gstobj)
Extract the text of the root node in an SWT Tree.
Note: SWT Trees can have multiple root nodes. |
protected Tree |
extractTreeItems(java.lang.Object obj)
Extract a 'Tree' hierarchy from a TestObject.
|
protected java.lang.String |
formatObjectData(java.util.List list)
Overrides CFComponent.formatObjectData.
|
protected java.lang.String |
getTestDataTypeKey()
Note: Subclass may override this method.
|
protected java.lang.String |
getTreeNodeValue(ITestDataTreeNode treenode)
Note: Get the tree node's text value.
|
protected boolean |
isNodeSelected(GuiSubitemTestObject guiObj,
com.rational.test.ft.script.List testPathList)
Note: This method can only treate the java-swing component,
For other appliction, it needed to be overrided.
|
protected boolean |
isRootVisible(GuiSubitemTestObject guiObj)
Purpose: helper function to check if the root node of the tree is visible |
protected void |
localProcess()
Purpose: process: process the testRecordData This is our specific version. |
protected void |
process2DSubtree(ITestDataTreeNode treenode,
int lev)
Recursive helper function for to2DArray().
|
protected java.lang.String[][] |
to2DArray(java.lang.Object obj)
Return a 2D format of the JTree by first recursively updating the
global rowlist which contains each treenode, and then dumping rowlist into the 2D array.
|
protected void |
verifyTreeContains()
Purpose: Verify the existence of a node in a tree. |
_maximize, _minimize, _restore, _setPosition, _setSize, captureObjectDataToFile, capturePropertiesToFile, capturePropertyToFile, clearAppMapCache, closeWindow, componentClick, convertObjectValueToString, exist, extractTreeItemsSub, findMenuBars, 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 ACTIVATEUNVERIFIEDTEXTNODE
public static final java.lang.String CAPTURETREEDATATOFILE
public static final java.lang.String CLICKPARTIAL
public static final java.lang.String CLICK
public static final java.lang.String CLICKUNVERIFIEDTEXTNODE
public static final java.lang.String COLLAPSE
public static final java.lang.String COLLAPSEPARTIALTEXTNODE
public static final java.lang.String COLLAPSEPARTIAL
public static final java.lang.String COLLAPSETEXTNODE
public static final java.lang.String COLLAPSEUNVERIFIEDTEXTNODE
public static final java.lang.String CTRLCLICKUNVERIFIEDTEXTNODE
public static final java.lang.String DOUBLECLICKPARTIAL
public static final java.lang.String DOUBLECLICK
public static final java.lang.String DOUBLECLICKUNVERIFIEDTEXTNODE
public static final java.lang.String EXPAND
public static final java.lang.String EXPANDPARTIAL
public static final java.lang.String EXPANDPARTIALTEXTNODE
public static final java.lang.String EXPANDTEXTNODE
public static final java.lang.String EXPANDUNVERIFIEDTEXTNODE
public static final java.lang.String MAKESELECTION
public static final java.lang.String PARTIALTREEDATATOFILE
public static final java.lang.String RIGHTCLICKPARTIAL
public static final java.lang.String RIGHTCLICK
public static final java.lang.String RIGHTCLICKUNVERIFIEDTEXTNODE
public static final java.lang.String SELECT
public static final java.lang.String SELECTANOTHERPARTIALTEXTNODE
public static final java.lang.String SELECTANOTHERTEXTNODE
public static final java.lang.String SELECTANOTHERUNVERIFIEDTEXTNODE
public static final java.lang.String SELECTPARTIAL
public static final java.lang.String SELECTPARTIALTEXTNODE
public static final java.lang.String SELECTTEXTNODE
public static final java.lang.String SELECTUNVERFIEDTEXTNODE
public static final java.lang.String SETTREECONTAINSNODE
public static final java.lang.String SETTREECONTAINSPARTIAL
public static final java.lang.String SHIFTCLICKUNVERIFIEDTEXTNODE
public static final java.lang.String VERIFYNODEUNSELECTED
public static final java.lang.String VERIFYSELECTEDNODE
public static final java.lang.String VERIFYTREECONTAINSNODE
public static final java.lang.String VERIFYTREECONTAINSPARTIAL
public static final java.lang.String NODE_DELIMIT
public static final java.lang.String INDEX_PREFIX
public static final java.lang.String METHOD_TOSTRING
public static final java.lang.String METHOD_GETSELECTIONPATHS
public static final java.lang.String METHOD_GETPATH
public static final java.lang.String PROPERTY_USEROBJECT
boolean partialmatch
protected void localProcess()
GuiSubitemTestObject
'.
Path Example: "Composers->Bach->Brandenburg Concertos Nos. 1 & 3"
Processor.testRecordData
statusCode is set
based on the result of the processing
Processor.testRecordData
, Processor.params
localProcess
in class CFComponent
protected void commandWithOneParam() throws SAFSException
action,
- String (i.e. expand)script,
- ScriptcompName,
- Stringutils,
- DDGUtilsInterface
SAFSException
protected void doExpand(TestObject testObjct, com.rational.test.ft.script.List path, boolean expand) throws SAFSException
testObjct
- TestObject The tree test objectpath
- String The tree path to be selectedexpand
- boolean If true, expand the tree path; otherwise collapse the tree pathSAFSException
protected void doDoubleClick(TestObject testObjct, com.rational.test.ft.script.List path) throws SAFSException
SAFSException
protected java.lang.String extractSWTRootName(GuiSubitemTestObject gstobj)
gstobj,
- GuiSubitemTestObjectprotected java.lang.String extractRootName(GuiSubitemTestObject gstobj)
gstobj,
- Object (actually of type GuiSubitemTestObject)protected boolean isRootVisible(GuiSubitemTestObject guiObj)
gstobj,
- Object (actually of type GuiSubitemTestObject--the JTree)PropertyNotFoundException
protected Tree extractTreeItems(java.lang.Object obj) throws SAFSException
obj,
- Object (actually of type GuiSubitemTestObject--the JTree)SAFSException
protected java.util.List captureObjectData(TestObject tree)
Root Trunk Branch1 Leaf1 Branch2 Leaf2 etc.
captureObjectData
in class CFComponent
tree
- TestObject to snapshot data from.CFComponent.captureObjectData(TestObject)
protected java.lang.String formatObjectData(java.util.List list)
formatObjectData
in class CFComponent
list
- List returned from captureObjectDataCFComponent.formatObjectData(java.util.List)
protected java.lang.String[][] to2DArray(java.lang.Object obj)
obj,
- Object, actually of type GuiSubitemTestObjectprotected void process2DSubtree(ITestDataTreeNode treenode, int lev)
treenode,
- ITestDataTreeNode (the treenode)java.lang.ArrayIndexOutOfBoundsException
protected java.lang.String getTreeNodeValue(ITestDataTreeNode treenode)
treenode
- protected void captureTreeDataToFile() throws SAFSException
SAFSException
protected void verifyTreeContains() throws SAFSException
SAFSException
protected boolean isNodeSelected(GuiSubitemTestObject guiObj, com.rational.test.ft.script.List testPathList) throws SAFSException
guiObj
- Represent a javax.swing.JTree object.testPathList
- The path to be tested if it is the selected path.SAFSException
protected java.lang.String getTestDataTypeKey()
Copyright © SAS Institute. All Rights Reserved.