public class CFList extends CFComponent
ComponentFunction.Window
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVATEPARTIALMATCH |
static java.lang.String |
ACTIVATETEXTITEM |
static java.lang.String |
ACTIVATEUNVERIFIEDPARTIALMATCH |
static java.lang.String |
ACTIVATEUNVERIFIEDTEXTITEM |
static java.lang.String |
CAPTUREITEMSTOFILE |
static java.lang.String |
CLICKCOLUMNINDEX |
static java.lang.String |
CLICKCOLUMNLABEL |
static java.lang.String |
CLICKTEXTITEM |
static java.lang.String |
EXTENDSELECTIONTOTEXTITEM |
static java.lang.String |
LISTDATA_RFT_VP_PROPERTY |
static java.lang.String |
NETLISTBOXCLASSNAME |
static java.lang.String |
NETLISTVIEWCLASSNAME |
static java.lang.String |
RIGHTCLICKTEXTITEM |
static java.lang.String |
RIGHTCLICKUNVERIFIEDTEXTITEM |
static java.lang.String |
SELECT |
static java.lang.String |
SELECTANOTHERTEXTITEM |
static java.lang.String |
SELECTANOTHERUNVERIFIEDTEXTITEM |
static java.lang.String |
SELECTINDEX |
static java.lang.String |
SELECTPARTIALMATCH |
static java.lang.String |
SELECTTEXTITEM |
static java.lang.String |
SELECTUNVERIFIED |
static java.lang.String |
SELECTUNVERIFIEDPARTIALMATCH |
static java.lang.String |
SELECTUNVERIFIEDTEXTITEM |
static java.lang.String |
SETLISTCONTAINS |
static java.lang.String |
SETTEXTVALUE |
static java.lang.String |
VERIFYITEM |
static java.lang.String |
VERIFYITEMUNSELECTED |
static java.lang.String |
VERIFYLISTCONTAINS |
static java.lang.String |
VERIFYLISTCONTAINSPARTIALMATCH |
static java.lang.String |
VERIFYLISTDOESNOTCONTAIN |
static java.lang.String |
VERIFYLISTDOESNOTCONTAINPARTIALMATCH |
static java.lang.String |
VERIFYMENUITEM |
static java.lang.String |
VERIFYMENUPARTIALMATCH |
static java.lang.String |
VERIFYPARTIALMATCH |
static java.lang.String |
VERIFYSELECTED |
static java.lang.String |
VERIFYSELECTEDITEM |
static java.lang.String |
VERIFYSELECTEDPARTIALMATCH |
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, 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 |
---|
CFList()
Purpose: constructor, calls super |
Modifier and Type | Method and Description |
---|---|
protected void |
activatePartialMatch(GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact)
Purpose: activatePartialMatch |
protected void |
captureItemsToFile()
Purpose: captureItemsToFile |
protected java.util.List |
captureObjectData(TestObject guiObj)
Note: Need to modify this method if we want to support new application type, such as Flex application
|
protected void |
clickColumn(GuiSubitemTestObject guiObj,
java.lang.String param)
Purpose: clickColumn |
protected void |
clickTextItem(GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact,
boolean rightClick)
Deprecated.
Use clickTextItem2 instead.
|
protected void |
clickTextItem2(GuiSubitemTestObject guiObj,
java.lang.String itemToClick,
boolean exact,
boolean rightClick,
boolean verified)
Note: This method can replace clickTextItem(). |
protected java.lang.String |
getListItem(GuiTestObject guiObj,
int index) |
protected java.util.List |
getListItems(TestObject guiObj,
java.lang.String vpProperty) |
protected void |
localProcess()
Purpose: process: process the testRecordData This is our specific version. |
protected void |
modifiedClickTextItem(MouseModifiers mbuttons,
GuiSubitemTestObject guiObj,
java.lang.String param)
Purpose: click with various mouse buttons active |
protected void |
modifiedDoubleClickTextItem(MouseModifiers mbuttons,
GuiSubitemTestObject guiObj,
java.lang.String param)
Purpose: activateUnverifiedTextItem |
protected java.lang.String |
performDoubleClick(GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact,
MouseModifiers mbuttons)
Purpose: Perform a double click on the item in a list
Note: Should be called by function without verification, as this method will check the existence of item
|
protected boolean |
scrollToIndex(GuiSubitemTestObject guiObj,
int index)
Note: Scroll to the item to make it shown on screen so that click or select can be executed.
|
protected boolean |
scrollToText(GuiSubitemTestObject guiObj,
java.lang.String text)
Note: Scroll to the item to make it shown on screen so that click or select can be executed.
|
protected java.lang.String[] |
searchForListItem(GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact)
Purpose: Search item in list
|
protected void |
selectIndex(GuiSubitemTestObject guiObj,
java.lang.String param)
Purpose: selectIndex 17 JUL 2008 (Lei Wang) Modify index setting. |
protected boolean |
selectItemAtIndex(GuiSubitemTestObject guiObj,
int index)
try both click and setState(Action.select() means to select an item by index
|
protected void |
selectPartialMatch(GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact)
Purpose: selectPartialMatch |
protected void |
SetListContains(GuiSubitemTestObject guiObj,
java.lang.String param,
java.util.Iterator piter)
Purpose: repeatly access each list-item of guiObj to see if its substring matches target string param. |
protected void |
verifyItem(GuiSubitemTestObject guiObj,
java.lang.String param,
java.util.Iterator piter)
Purpose: verifyItem |
protected void |
VerifyListContains(GuiSubitemTestObject guiObj,
java.lang.String param,
java.util.Iterator piter,
boolean exact)
Purpose: respond to VERIFYLISTCONTAINS and VERIFYLISCONTAINSPARTIALMATCH. |
protected void |
VerifyListNotContain(GuiSubitemTestObject guiObj,
java.lang.String param,
java.util.Iterator piter,
boolean exact)
Purpose: respond to VERIFYLISDOESNOTCONTAINMATCH and VERIFYLISDOESNOTCONTAINPARTIALMATCH |
protected void |
verifyMenuItem(GuiSubitemTestObject guiObj,
java.lang.String param)
Purpose: verifyMenuItem |
protected void |
verifySelected(GuiSubitemTestObject guiObj,
java.lang.String param,
boolean partialmatch)
Purpose: verifySelected |
protected void |
verifySelected(GuiSubitemTestObject guiObj,
java.lang.String param,
boolean partialmatch,
boolean desireSelected)
Purpose: verifySelected |
protected void |
verifyUnSelected(GuiSubitemTestObject guiObj,
java.lang.String param,
boolean partialmatch)
Purpose: verifyUnSelected |
_maximize, _minimize, _restore, _setPosition, _setSize, 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 ACTIVATETEXTITEM
public static final java.lang.String ACTIVATEPARTIALMATCH
public static final java.lang.String ACTIVATEUNVERIFIEDPARTIALMATCH
public static final java.lang.String ACTIVATEUNVERIFIEDTEXTITEM
public static final java.lang.String CAPTUREITEMSTOFILE
public static final java.lang.String EXTENDSELECTIONTOTEXTITEM
public static final java.lang.String SELECT
public static final java.lang.String SELECTANOTHERTEXTITEM
public static final java.lang.String SELECTANOTHERUNVERIFIEDTEXTITEM
public static final java.lang.String SELECTTEXTITEM
public static final java.lang.String CLICKTEXTITEM
public static final java.lang.String RIGHTCLICKTEXTITEM
public static final java.lang.String RIGHTCLICKUNVERIFIEDTEXTITEM
public static final java.lang.String SELECTINDEX
public static final java.lang.String SELECTPARTIALMATCH
public static final java.lang.String SELECTUNVERIFIEDPARTIALMATCH
public static final java.lang.String SELECTUNVERIFIED
public static final java.lang.String SELECTUNVERIFIEDTEXTITEM
public static final java.lang.String SETTEXTVALUE
public static final java.lang.String SETLISTCONTAINS
public static final java.lang.String VERIFYMENUPARTIALMATCH
public static final java.lang.String VERIFYMENUITEM
public static final java.lang.String VERIFYPARTIALMATCH
public static final java.lang.String VERIFYITEM
public static final java.lang.String VERIFYSELECTED
public static final java.lang.String VERIFYSELECTEDITEM
public static final java.lang.String VERIFYSELECTEDPARTIALMATCH
public static final java.lang.String VERIFYITEMUNSELECTED
public static final java.lang.String VERIFYLISTCONTAINS
public static final java.lang.String VERIFYLISTCONTAINSPARTIALMATCH
public static final java.lang.String VERIFYLISTDOESNOTCONTAIN
public static final java.lang.String VERIFYLISTDOESNOTCONTAINPARTIALMATCH
public static final java.lang.String CLICKCOLUMNINDEX
public static final java.lang.String CLICKCOLUMNLABEL
public static final java.lang.String NETLISTBOXCLASSNAME
public static final java.lang.String NETLISTVIEWCLASSNAME
public static final java.lang.String LISTDATA_RFT_VP_PROPERTY
protected void localProcess()
Processor.testRecordData
statusCode is set
based on the result of the processing
Processor.testRecordData
, Processor.params
localProcess
in class CFComponent
protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index)
protected void selectIndex(GuiSubitemTestObject guiObj, java.lang.String param) throws SAFSException
SAFSException
protected void selectPartialMatch(GuiSubitemTestObject guiObj, java.lang.String param, boolean exact)
exact,
- boolean, if true, then exact match, else partial matchprotected void clickTextItem(GuiSubitemTestObject guiObj, java.lang.String param, boolean exact, boolean rightClick)
exact
- boolean; if true, then exact match, else partial matchrightClick
- boolean; Right click or Left click?protected void clickTextItem2(GuiSubitemTestObject guiObj, java.lang.String itemToClick, boolean exact, boolean rightClick, boolean verified) throws SAFSException
guiObj
- TestObject represents a List GUI object.param
- The item to be clicked in the list.exact
- If it is true, an exact match when do verification.rightClick
- If it is true, perform a mouse right click.verified
- If it is true, perfrom a verification, that is to verify if parameter itemToClick
can be found in the List GUI object.SAFSException
- Will be thrown out if the list contents can not be exacted from the list object.protected void activatePartialMatch(GuiSubitemTestObject guiObj, java.lang.String param, boolean exact) throws SAFSException
SAFSException
protected void verifyMenuItem(GuiSubitemTestObject guiObj, java.lang.String param)
protected void verifySelected(GuiSubitemTestObject guiObj, java.lang.String param, boolean partialmatch)
partialmatch,
- if true, then partial match on selectedprotected void verifyUnSelected(GuiSubitemTestObject guiObj, java.lang.String param, boolean partialmatch)
partialmatch,
- if true, then partial match on unselectedprotected void verifySelected(GuiSubitemTestObject guiObj, java.lang.String param, boolean partialmatch, boolean desireSelected)
partialmatch
- if true, then partial match on selecteddesireSelected
- if true, test for selected; otherwise, unselectedprotected void verifyItem(GuiSubitemTestObject guiObj, java.lang.String param, java.util.Iterator piter)
protected java.lang.String getListItem(GuiTestObject guiObj, int index) throws SAFSException
guiObj
- A test object represents a listindex
- An index of the item in a listSAFSException
protected void modifiedClickTextItem(MouseModifiers mbuttons, GuiSubitemTestObject guiObj, java.lang.String param) throws SAFSException
SAFSException
protected void modifiedDoubleClickTextItem(MouseModifiers mbuttons, GuiSubitemTestObject guiObj, java.lang.String param) throws SAFSException
SAFSException
protected void captureItemsToFile() throws SAFSException
example step commands:
T, JavaWin, JList, CaptureItemsToFile, AFileName.txt
Capture all items of JList to file AFileName.txt
SAFSException
protected void SetListContains(GuiSubitemTestObject guiObj, java.lang.String param, java.util.Iterator piter) throws SAFSException
guiObj
- stands for JList, Html.SELECT or .NET listparam
- target stringpiter
- Iterator in which first item is case-sensitivity.SAFSException
protected void VerifyListContains(GuiSubitemTestObject guiObj, java.lang.String param, java.util.Iterator piter, boolean exact)
guiObj
- stands for JList or Html.SELECTparam
- target stringpiter
- Iterator in which first item is case-sensitivity.exact
- true means exactly matching the target string; false means partially matching.protected void VerifyListNotContain(GuiSubitemTestObject guiObj, java.lang.String param, java.util.Iterator piter, boolean exact)
guiObj
- stands for JList or Html.SELECTparam
- target stringpiter
- Iterator in which first item is case-sensitivity.exact
- true means exactly matching the target string; false means partially matching.protected java.util.List captureObjectData(TestObject guiObj) throws SAFSException
captureObjectData
in class CFComponent
guiObj
- This is the reference to the List object (java or .net or other list)SAFSException
protected java.util.List getListItems(TestObject guiObj, java.lang.String vpProperty) throws SAFSException
guiObj
- TestObject representing the ListBox objectvpProperty
- String representing the property name of list test data providedSAFSException
protected java.lang.String[] searchForListItem(GuiSubitemTestObject guiObj, java.lang.String param, boolean exact) throws SAFSException
guiObj
- A test object represents a listparam
- An item textexact
- If true, the item will be matched exactly; otherwise, it will be matched partially.SAFSException
protected java.lang.String performDoubleClick(GuiSubitemTestObject guiObj, java.lang.String param, boolean exact, MouseModifiers mbuttons) throws SAFSException
guiObj
- A test object represents a listparam
- An item textexact
- If true, the item will be matched exactly; otherwise, it will be matched partially.mbuttons
- A mouse modifier like left, right click etc.SAFSException
protected boolean scrollToIndex(GuiSubitemTestObject guiObj, int index)
guiObj
- A test object representing a listindex
- The item index in the listprotected boolean scrollToText(GuiSubitemTestObject guiObj, java.lang.String text)
guiObj
- A test object representing a listtext
- The item in the listprotected void clickColumn(GuiSubitemTestObject guiObj, java.lang.String param) throws SAFSException
SAFSException
Copyright © SAS Institute. All Rights Reserved.