org.safs.rational.flex
Class CFFlexTree

java.lang.Object
  extended by org.safs.Processor
      extended by org.safs.ComponentFunction
          extended by org.safs.rational.CFComponent
              extended by org.safs.rational.CFTree
                  extended by org.safs.rational.flex.CFFlexTree

public class CFFlexTree
extends CFTree


Field Summary
static java.lang.String PROPERTY_AUTOMATIONNAME
           
static java.lang.String PROPERTY_SELECTEDINDEX
           
static java.lang.String PROPERTY_SELECTEDINDICES
           
static java.lang.String TREE_ITEMNAME_SEPARATOR
           
 
Fields inherited from class org.safs.rational.CFTree
ACTIVATEUNVERIFIEDTEXTNODE, CAPTURETREEDATATOFILE, CLICK, CLICKPARTIAL, CLICKUNVERIFIEDTEXTNODE, COLLAPSE, COLLAPSEPARTIAL, COLLAPSEPARTIALTEXTNODE, COLLAPSETEXTNODE, COLLAPSEUNVERIFIEDTEXTNODE, CTRLCLICKUNVERIFIEDTEXTNODE, DOUBLECLICK, DOUBLECLICKPARTIAL, DOUBLECLICKUNVERIFIEDTEXTNODE, EXPAND, EXPANDPARTIAL, EXPANDPARTIALTEXTNODE, EXPANDTEXTNODE, EXPANDUNVERIFIEDTEXTNODE, INDEX_PREFIX, MAKESELECTION, METHOD_GETPATH, METHOD_GETSELECTIONPATHS, METHOD_TOSTRING, NODE_DELIMIT, PARTIALTREEDATATOFILE, PROPERTY_USEROBJECT, RIGHTCLICK, RIGHTCLICKPARTIAL, RIGHTCLICKUNVERIFIEDTEXTNODE, SELECT, SELECTANOTHERPARTIALTEXTNODE, SELECTANOTHERTEXTNODE, SELECTANOTHERUNVERIFIEDTEXTNODE, SELECTPARTIAL, SELECTPARTIALTEXTNODE, SELECTTEXTNODE, SELECTUNVERFIEDTEXTNODE, SETTREECONTAINSNODE, SETTREECONTAINSPARTIAL, SHIFTCLICKUNVERIFIEDTEXTNODE, VERIFYNODEUNSELECTED, VERIFYSELECTEDNODE, VERIFYTREECONTAINSNODE, VERIFYTREECONTAINSPARTIAL
 
Fields inherited from class org.safs.rational.CFComponent
ALTLEFTDRAG, ASSIGNPROPERTYVARIABLE, CAPTUREOBJECTDATATOFILE, CAPTUREPROPERTIESTOFILE, CAPTUREPROPERTYTOFILE, CLEARAPPMAPCACHE, CLOSEWINDOW, COMPONENTCLICK, CTRLALTLEFTDRAG, CTRLCLICK, CTRLLEFTDRAG, CTRLRIGHTCLICK, CTRLSHIFTLEFTDRAG, GETGUIIMAGE, GUIDOESEXIST, GUIDOESNOTEXIST, HOVERMOUSE, HSCROLLTO, INPUTCHARACTERS, INPUTKEYS, LEFTDRAG, MAXIMIZE, MINIMIZE, obj1, RESTORE, RIGHTDRAG, script, SELECTMENUITEM, SELECTMENUITEMCONTAINS, SETPOSITION, SETPROPERTYVALUE, SHIFTCLICK, SHIFTLEFTDRAG, VERIFYARRAYPROPERTYTOFILE, VERIFYBINARYFILETOFILE, VERIFYCLIPBOARDTOFILE, VERIFYFILETOFILE, VERIFYGUIIMAGETOFILE, VERIFYMENUITEM, VERIFYMENUITEMCONTAINS, VERIFYOBJECTDATATOFILE, VERIFYPROPERTY, VERIFYPROPERTYCONTAINS, VERIFYPROPERTYTOFILE, VERIFYTEXTFILETOFILE, VERIFYVALUECONTAINS, VERIFYVALUEEQUALS, VERIFYVALUES, VERIFYVALUESIGNORECASE, VSCROLLTO, WAITFORGUI, WIN_MAXIMIZED, WIN_MINIMIZED, WIN_NORMAL
 
Fields inherited from class org.safs.ComponentFunction
action, compName, mapname, utils, windowName
 
Fields inherited from class org.safs.Processor
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, 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, 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, WARNING_MESSAGE, WARNING_OK_MESSAGE, warningStr, warningText
 
Constructor Summary
CFFlexTree()
           
 
Method Summary
protected  void doDoubleClick(TestObject testObjct, com.rational.test.ft.script.List path)
          Note: It seems that double click has no effect on a flex tree node.
protected  void doExpand(TestObject testObjct, com.rational.test.ft.script.List path, boolean expand)
           
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)
          This override the method of its superclass CFTree
 
Methods inherited from class org.safs.rational.CFTree
captureObjectData, captureTreeDataToFile, extractRootName, extractSWTRootName, extractTreeItems, formatObjectData, getTestDataTypeKey, localProcess, process2DSubtree, to2DArray, verifyTreeContains
 
Methods inherited from class org.safs.rational.CFComponent
captureObjectDataToFile, checkForCoord, checkForCoord, componentClick, convertObjectValueToString, extractTreeItemsSub, findMenuBars, getAppletsBrowser, getComponentRectangle, getHelpers, getObjectProperty, getObjectPropertyFromProperties, getUserObject, isDotnetDomain, isFlexDomain, isHtmlDomain, isJavaDomain, isSwtDomain, isSWTWidget, isWinDomain, listAllProperties, listAllProperties, listMethods, listNonValueProperties, listProperties, matchedPathOfMenuItem, parseWhereInfo, performClick, preformDrag, process, selectMenuItem, setPosition, tobj, verifyMenuItem
 
Methods inherited from class org.safs.ComponentFunction
action_getGuiImage, action_verifyGuiImageToFile, componentExecutedFailureMessage, componentFailureMessage, componentSuccessMessage, convertCoords, convertNum, getAlternateParams, getHelpersWorker, issueActionFailure, issueActionOnXFailure, issueErrorPerformingAction, issueErrorPerformingActionOnX, issueFileErrorFailure, issueInputRecordFailure, issueParameterCountFailure, issueParameterCountFailure, issueParameterValueFailure, issuePassedSuccess, issuePassedSuccessUsing, issueUnknownErrorFailure, isSupportedRecordType, lookupAppMapCoordReference, lookupAppMapNumReference, lookupAppMapReference, updateFromTestRecordData
 
Methods inherited from class org.safs.Processor
activateBreakpoint, checkBreakpoints, checkMyBreakpoints, delay, distributeConfigInformation, getAppMapItem, getChainedProcessor, getClassInstance, getClearProxiesAlways, getCustomProcClassNames, getCustomProcInstancePath, getLogUtilities, getParams, getProcClassNames, getProcInstance, getProcInstancePath, getRequiredField, getSecsWaitForComponent, getSecsWaitForWindow, getStandardErrorMessage, getTestRecordData, getVariable, hasChainedProcessor, initProcessorAndProcess, instanceProcessorAndProcess, isBreakpointsOn, isComponentFunctionRecord, isDriverCommandRecord, isEngineCommandRecord, isMyBreakpointsOn, isRecordProcessed, paramsFailedMsg, paramsFailedMsg, processCustomProcessor, processSubclassProcessor, setBreakpointsOn, setChainedProcessor, setClearProxiesAlways, setCommandLineBreakpoint, setCustomProcInstancePath, setLogUtilities, setMyBreakpointsOn, setParams, setProcInstance, setProcInstancePath, setRecordProcessed, setSecsWaitForComponent, setSecsWaitForWindow, setTestDomains, setTestRecordData, setVariable, standardFailureMessage, substituteVariable, validateParamSize, validProcessorClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_SELECTEDINDEX

public static final java.lang.String PROPERTY_SELECTEDINDEX
See Also:
Constant Field Values

PROPERTY_SELECTEDINDICES

public static final java.lang.String PROPERTY_SELECTEDINDICES
See Also:
Constant Field Values

PROPERTY_AUTOMATIONNAME

public static final java.lang.String PROPERTY_AUTOMATIONNAME
See Also:
Constant Field Values

TREE_ITEMNAME_SEPARATOR

public static final java.lang.String TREE_ITEMNAME_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

CFFlexTree

public CFFlexTree()
Method Detail

isRootVisible

protected boolean isRootVisible(GuiSubitemTestObject guiObj)
This override the method of its superclass CFTree

Overrides:
isRootVisible in class CFTree
Returns:
boolean; We assume that root is visible if the rootVisible property is not found or equals anything other than "false". Always returns true for SWT widgets.

isNodeSelected

protected boolean isNodeSelected(GuiSubitemTestObject guiObj,
                                 com.rational.test.ft.script.List testPathList)
                          throws SAFSException
Description copied from class: CFTree
Note: This method can only treate the java-swing component, For other appliction, it needed to be overrided.

Overrides:
isNodeSelected in class CFTree
Parameters:
guiObj - Represent a TreeView object.
testPathList - The path to be tested if it is the selected path.
Returns:
True if the path is selected; False otherwise.
Throws:
SAFSException

doExpand

protected void doExpand(TestObject testObjct,
                        com.rational.test.ft.script.List path,
                        boolean expand)
                 throws SAFSException
Overrides:
doExpand in class CFTree
Parameters:
testObjct - TestObject The tree test object
path - String The tree path to be expanded or collapsed
expand - boolean If true, expand the tree path; otherwise collapse the tree path
Throws:
SAFSException

doDoubleClick

protected void doDoubleClick(TestObject testObjct,
                             com.rational.test.ft.script.List path)
                      throws SAFSException
Note: It seems that double click has no effect on a flex tree node.

Overrides:
doDoubleClick in class CFTree
Parameters:
testObjct - TestObject The tree test object
path - String The tree path to be double clicked
Throws:
SAFSException