public class CFTable extends CFComponent
Modifier and Type | Class and Description |
---|---|
class |
CFTable.TableCell |
ComponentFunction.Window
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVATECELL |
static java.lang.String |
ACTIVATECOLUMNLABEL |
static java.lang.String |
ACTIVATEROWLABEL |
static java.lang.String |
ASSIGNCELLCONTAINSTEXTROW |
static java.lang.String |
ASSIGNCELLTEXTROW |
static java.lang.String |
ASSIGNVARIABLECELLTEXT |
static java.lang.String |
ASSIGNVARIABLEFUZZYCELLTEXT |
static java.lang.String |
CAPTUREFUZZYRANGETOFILE |
static java.lang.String |
CAPTURERANGETOFILE |
static java.lang.String |
CLICKCELL |
static java.lang.String |
CLICKCELLOFCOLWITHROWVALUES |
static java.lang.String |
CLICKCOLUMNLABEL |
static java.lang.String |
CLICKROWLABEL |
protected java.lang.String[] |
customCellObjects |
static java.lang.String |
DOUBLECLICKCELL |
static java.lang.String |
DOUBLECLICKCELLOFCOLWITHROWVALUES |
static java.lang.String |
DOUBLECLICKCOLUMNLABEL |
static java.lang.String |
DOUBLECLICKROWLABEL |
static java.lang.String |
GETCELLCOORDINATES |
static java.lang.String |
GETTABLEROWCOLUMNCOUNT |
static java.lang.String |
RFTGENERALVALUEPACKAGENAME |
static java.lang.String |
RIGHTCLICKCELL |
static java.lang.String |
RIGHTCLICKCOLUMNLABEL |
static java.lang.String |
SELECTCELL |
static java.lang.String |
SELECTCELLCONTAINSTEXTFIND |
static java.lang.String |
SELECTCELLTEXT |
static java.lang.String |
SELECTCELLTEXTFIND |
static java.lang.String |
SELECTCELLTEXTSPECIAL |
static java.lang.String |
SELECTFUZZYCELLTEXT |
static java.lang.String |
SELECTFUZZYCELLTEXTFIND |
static java.lang.String |
SELECTROWWITHROWVALUES |
static java.lang.String |
VERIFYCELLEDITABLE |
static java.lang.String |
VERIFYCELLTEXT |
static java.lang.String |
VERIFYCELLTEXTCONTAINS |
static java.lang.String |
VERIFYCELLTEXTFIND |
static java.lang.String |
VERIFYCOLUMNLABEL |
static java.lang.String |
VERIFYFUZZYCELLTEXT |
static java.lang.String |
VERIFYFUZZYCELLTEXTCONTAINS |
static java.lang.String |
VERIFYFUZZYCELLTEXTFIND |
static java.lang.String |
VERIFYROWLABEL |
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 |
---|
CFTable()
Purpose: constructor, calls super |
Modifier and Type | Method and Description |
---|---|
protected void |
actionAssign(GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
java.lang.String var)
Purpose: actually do the assign action |
protected void |
actionCaptureRangeToFile(GuiTestObject guiObj,
java.lang.Integer rrow,
java.lang.Integer rrows,
java.lang.String rowval,
java.lang.Integer ccol,
java.lang.Integer ccols,
java.lang.String column,
java.lang.String filename,
boolean fuzzy,
java.lang.String encoding)
Purpose: actually do the capture action |
protected void |
actionClick(GuiTestObject guiObj,
int row,
int col,
java.lang.Integer rrow2,
java.lang.Integer ccol2,
java.lang.String rowval,
java.lang.String column)
Perform a click action (this version takes 4 params),
not implemented for CFTable, just reverts to the other version...
|
protected void |
actionClick(GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column)
Perform a click-variant action on a cell in a table.
|
protected void |
actionClickColumnLabel(GuiTestObject guiObj,
int col,
int yoffset)
Purpose: ClickColumnLabel,DoubleClickColumnLabel, ActivateColumnLabel |
protected void |
actionClickRowLabel(GuiTestObject guiObj,
int row,
int xoffset)
Purpose: ClickRowLabel, *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected void |
actionGetCellCoordinates(GuiTestObject guiObj,
int row,
int col,
java.lang.String xCoordVariable,
java.lang.String yCoordVariable)
Purpose: GetCellCoordinates, *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected void |
actionGetTableRowColumnCount(GuiTestObject guiObj,
java.lang.String rowCountVariable,
java.lang.String colCountVariable)
Purpose: GetTableRowColumnCount *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected void |
actionLocalSelectCellTextSpecial(GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
boolean control,
boolean shift,
boolean leftRight) |
protected void |
actionSelectCellTextSpecial(GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
boolean control,
boolean shift,
boolean leftRight)
Purpose: actually do the right or left click action with Contorl or Shift key pressed. |
protected void |
actionVerify(GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
boolean fuzzy,
java.lang.String val)
Purpose: actually do the verify action |
protected void |
actionVerifyCellEditable(GuiTestObject guiObj,
int row,
int col,
boolean verifyFlag)
Purpose: VerifyCellEditable |
protected void |
actionVerifyColumnLabel(GuiTestObject guiObj,
java.lang.String val,
int col)
Purpose: VerifyColLabel, *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected void |
actionVerifyRowLabel(GuiTestObject guiObj,
java.lang.String val,
int row)
Purpose: VerifyRowLabel, *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected java.util.List<java.util.List<java.lang.String>> |
captureObjectData(TestObject table)
Captures the object data into a List of rows.
|
protected void |
commandAssignCellTextRow(boolean fuzzy)
Purpose: commandAssignCellTextRow: Assign the "found row number" to a staf variable. |
protected void |
commandAssignVariableCellText(boolean fuzzy)
Purpose: commandAssignVariableCellText: process commands like: assignvariablecelltext |
protected void |
commandCaptureRangeToFile(boolean fuzzy)
process commands like CaptureRangeToFile, CaptureFuzzyRangeToFile
NOTE: if fuzzy is true then: (case is ignored; if matching columns, or
if matching cell values, use substrings)
|
protected void |
commandClick(boolean fuzzy)
Process commands like: clickcell, doubleclickcell, activatecell
Example:custTableTable().click(atCell(atRow(rowIndex), atColumn(colIndex)));
first param is the row and second param is column (both from 1), the col could be the name of the column, if non-numeric |
protected void |
commandClickCellOfColWithRowValues()
Purpose: commandClickCellOfColWithRowValues: process commands like: clickCellOfColWithRowValues, doubleclickCellOfColWithRowValues Example:custTableTable().click(atCell(atColumn("PHONE"), atRow("NAME", "Jill Sanford", "CUSTID", "19", "STREET", "80 West End"))); // with no coords Example:custTableTable().click(atCell(atColumn("PHONE"), atRow("NAME", "Jill Sanford", "CUSTID", "19", "STREET", "80 West End")), atPoint(4,5)); // with coords example step commands: T,Frame,custTableTable,clickCellOfColWithRowValues,,PHONE,CUSTID,5,NAME,Susan Flontly,STREET,750 Central Expy T,Frame,orderTableTable,clickCellOfColWithRowValues,,QUANTITY,ORDERDATE,3/11/98,EXPDATE,1298,QUANTITY,3 T,Frame,orderTableTable,clickCellOfColWithRowValues,44;15,QUANTITY,ORDERDATE,3/11/98,EXPDATE,1298,QUANTITY,3 T,Frame,orderTableTable,clickCellOfColWithRowValues,"Coords=44;15",QUANTITY,ORDERDATE,3/11/98,EXPDATE,1298,QUANTITY,3 first param is cell pixel xoffset and yoffset second param is the column name, remaining params are the name/value pairs for the row specification for the cell |
protected void |
commandClickColumnLabel()
Purpose: commandClickColumnLabel: process commands like: click, doubleclick, activate T,windowName,TableName,clickColumnLabel,2 T,windowName,TableName,doubleclickColumnLabel,2 T,windowName,TableName,activateColumnLabel,2 |
protected void |
commandClickFind(boolean fuzzy)
Purpose: commandClickFind: process commands like: click, doubleclick, activatecell example step commands: T,Frame,custTableTable,selectCellTextFind,rowIndexVar,3, FindCol1, FindVal1, FindCol2, FindVal2 T,Frame,orderTableTable,selectCellTextFind,rowIndexVar,PHONE NUM, FindCol1, FindVal1, FindCol2, FindVal2,FindCol3,FindVal3 second param is the column name/num to select, the rest of the params go in pairs, first a findColumn, then a findValue. |
protected void |
commandClickRowLabel()
Purpose: commandClickRowLabel: process commands like: click, doubleclick, activate T,windowName,TableName,clickRowLabel,2 T,windowName,TableName,doubleclickRowLabel,2 T,windowName,TableName,activateRowLabel,2 |
protected void |
commandGetCellCoordinates() |
protected void |
commandGetTableRowColumnCount()
Purpose: commandGetTableRowColumnCount T,windowName,TableName,GetTableRowColumnCount,retRowCountVar, retColCountVar |
protected void |
commandSelectCellTextSpecial(boolean fuzzy)
Purpose: commandSelectCellTextSpecial: process command click, with Contorl or shirt key and left or right mouse button. |
protected void |
commandSelectRowWithRowValues()
Purpose: commandSelectRowWithRowValues: process commands like: selectRowWithRowValues Example:custTableTable().setState(Action.select(), atRow("NAME", "Jill Sanford", "CUSTID", "19", "STREET", "80 West End")); example step commands: T,Frame,custTableTable,select,CUSTID,5,NAME,Susan Flontly,STREET,750 Central Expy T,Frame,orderTableTable,select,ORDERDATE,3/11/98,EXPDATE,1298,QUANTITY,3 all of the params are the name/value pairs for the row specification for the row to select |
protected void |
commandVerifyCellEditable()
Purpose: commandVerifyCellEditable: T,windowName,TableName,VerifyCellEditable,2,4,true or false T,windowName,TableName,VerifyCellEditable,2,Field4, true or false |
protected void |
commandVerifyCellText(boolean fuzzy)
Purpose: commandVerifyCellText: process commands like: verifyCellText and verifyCellTextContains |
protected void |
commandVerifyCellTextFind(boolean fuzzy)
Purpose: commandVerifyCellTextFind: process commands like: verifyCellTextFind |
protected void |
commandVerifyColumnLabel() |
protected void |
commandVerifyRowLabel() |
java.awt.Point |
convertCoords(java.lang.String coords)
Overrides the version in superclass ComponentFunctions to allow for
alternative of "Row=1;Col=1" or "Col = 1;Row = 1".
|
protected void |
doActionClick(GuiSubitemTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String colval)
Attempt to perform a click-type action on a cell and issue a success message
if successful.
|
java.lang.String |
formatObjectData(java.util.List list)
Format the List data into a single String.
|
protected Cell |
getCell(int row,
int col)
Purpose: get a Cell based on row and col |
protected java.lang.Object |
getCell(TestObject jctable,
int row,
int col)
Purpose: get a cell based on row and col |
protected java.lang.String |
getCellText(TestObject guiObj,
int row,
int col)
Note:
Get the text value of the cell at (row,col) in Java table Its subclass may override this method. |
protected java.lang.String[] |
getCellText(TestObject guiObj,
TestObject tblModel,
int row,
int col) |
protected int |
getColi(boolean fuzzy,
java.lang.String column,
GuiTestObject guiObj)
Purpose: get the column number based on fuzzy match |
protected java.lang.String |
getColumnName(TestObject guiObj,
int col)
Retrieve the column name for the provided zero-based column number.
|
protected TestObject |
getJCTable(TestObject jctable)
drill down through wrapper objects to get the table
Assumptions: to be used by sub-classes. |
protected java.awt.Rectangle |
getLocalRect(GuiTestObject jctable,
int row,
int col)
Purpose: getLocalRect get a rectangle based on row and col indicating the offset |
protected int |
getNumColumns(TestObject jctable)
Purpose: get number of columns in table |
protected int |
getNumRows(TestObject jctable)
Purpose: get number of rows in table |
protected java.util.List |
getObjectData(GuiTestObject table,
java.lang.Integer rrow,
java.lang.Integer rrows,
java.lang.String rowval,
java.lang.Integer ccol,
java.lang.Integer ccols,
java.lang.String column,
boolean fuzzy)
Captures the object data into a Tab delimited List of values.
|
protected GuiTestObject |
getRealTable(java.lang.Object table)
Attempts to cast the generic Object to a GuiTestObject.
|
protected int |
getRowi(boolean fuzzy,
java.util.Collection rowvalsParam,
GuiTestObject guiObj)
Purpose: get the row number based on fuzzy match |
protected java.lang.String |
getTableCellSubItemText(TestObject guiObj,
int row,
int col) |
java.lang.String |
getTextProperty() |
protected boolean |
isCustomCellObject(java.lang.String testObjectClass) |
protected void |
localProcess()
Purpose: process: process the testRecordData * This is our specific version. |
protected void |
performClick(java.lang.Object point)
Overrides CFComponent performClick to intercept TableCell specs.
|
protected java.lang.String |
processCustomCellObject(TestObject tblModelValue) |
protected void |
selectCellText(boolean fuzzy)
Example:custTableTable().click(atCell(atRow(rowIndex), atColumn(colIndex)));
first param is the row and second param is column (both from 1),
the col could be the name of the column, if non-numeric
the row could be the value of a cell in col #1.
|
_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, 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, 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 ACTIVATECELL
public static final java.lang.String ASSIGNCELLCONTAINSTEXTROW
public static final java.lang.String ASSIGNCELLTEXTROW
public static final java.lang.String ACTIVATECOLUMNLABEL
public static final java.lang.String ACTIVATEROWLABEL
public static final java.lang.String ASSIGNVARIABLECELLTEXT
public static final java.lang.String ASSIGNVARIABLEFUZZYCELLTEXT
public static final java.lang.String CAPTURERANGETOFILE
public static final java.lang.String CAPTUREFUZZYRANGETOFILE
public static final java.lang.String CLICKCELL
public static final java.lang.String CLICKCELLOFCOLWITHROWVALUES
public static final java.lang.String CLICKCOLUMNLABEL
public static final java.lang.String RIGHTCLICKCOLUMNLABEL
public static final java.lang.String CLICKROWLABEL
public static final java.lang.String DOUBLECLICKCELLOFCOLWITHROWVALUES
public static final java.lang.String DOUBLECLICKCELL
public static final java.lang.String DOUBLECLICKCOLUMNLABEL
public static final java.lang.String DOUBLECLICKROWLABEL
public static final java.lang.String GETCELLCOORDINATES
public static final java.lang.String GETTABLEROWCOLUMNCOUNT
public static final java.lang.String RIGHTCLICKCELL
public static final java.lang.String SELECTCELL
public static final java.lang.String SELECTCELLCONTAINSTEXTFIND
public static final java.lang.String SELECTCELLTEXTFIND
public static final java.lang.String SELECTCELLTEXT
public static final java.lang.String SELECTCELLTEXTSPECIAL
public static final java.lang.String SELECTFUZZYCELLTEXT
public static final java.lang.String SELECTFUZZYCELLTEXTFIND
public static final java.lang.String SELECTROWWITHROWVALUES
public static final java.lang.String VERIFYCELLEDITABLE
public static final java.lang.String VERIFYCELLTEXT
public static final java.lang.String VERIFYCELLTEXTFIND
public static final java.lang.String VERIFYCELLTEXTCONTAINS
public static final java.lang.String VERIFYCOLUMNLABEL
public static final java.lang.String VERIFYFUZZYCELLTEXT
public static final java.lang.String VERIFYFUZZYCELLTEXTCONTAINS
public static final java.lang.String VERIFYFUZZYCELLTEXTFIND
public static final java.lang.String VERIFYROWLABEL
public static final java.lang.String RFTGENERALVALUEPACKAGENAME
protected java.lang.String[] customCellObjects
public java.lang.String getTextProperty()
protected void localProcess()
GuiSubitemTestObject
'. *
Example:custTableTable().click(atCell(atColumn("PHONE"), * atRow("NAME",
"Jill Sanford", * "CUSTID", "19", "STREET", * "80 West End"))); * The
actions handled here are: *Processor.testRecordData
statusCode is set based on
the result of the processing Processor.testRecordData
,Processor.params
localProcess
in class CFComponent
protected void commandClickCellOfColWithRowValues() throws SAFSException
SAFSException
protected void commandClick(boolean fuzzy) throws SAFSException
fuzzy,
- is it a partial match on the column name or cell value
SAFSException
protected void selectCellText(boolean fuzzy) throws SAFSException
SAFSException
protected void performClick(java.lang.Object point)
performClick
in class CFComponent
point
- Object if instanceof TableCell, handle here; otherwise
handle in CFComponent superclass.protected void commandClickFind(boolean fuzzy) throws SAFSException
fuzzy,
- is it a partial match on the column name or cell value
SAFSException
protected void commandSelectRowWithRowValues() throws SAFSException
SAFSException
protected void commandVerifyCellText(boolean fuzzy) throws SAFSException
example step commands:
T, JavaWin, JTable, VerifyCellText, FirstCellValue
Compares the value of cell 1,1 in JTable to bench text "FirstCellValue".
Default row and column indices substituted for missing parameters.
T, JavaWin, JTable, VerifyCellText, "FirstCellValue", 1,1
Compares the value of cell 1,1 in JTable to bench text "FirstCellValue".
T, JavaWin, JTable, VerifyCellText, "BenchValue", 4, "Field5"
Compares the value of cell 4, Field5 in JTable to bench text "BenchValue".
The column is determined by matching the text "Field5" to the field headers in the JTable.
T, JavaWin, JTable, VerifyCellTextContains, "ench", 4, "Field5"
Compares the value of cell 4, Field5 in JTable to bench substring "ench".
The column is determined by matching the text "Field5" to the field headers in the JTable.
NOTE: if fuzzy is true then: (case is ignored; if matching columns, or
if matching cell values, use substrings)
fuzzy,
- booleanSAFSException
protected void commandVerifyCellTextFind(boolean fuzzy) throws SAFSException
example step commands:
T, JavaWin, JTable, VerifyCellText, "BenchValue", rowIndexVar, "Field5", FindCol1, FindVal1, FindCol2, FindVal2,FindCol3,FindVal3
Compares value of a found cell row, column Field5 in JTable to bench text "BenchValue".
third param is the column name/num to select, the rest of the params go in pairs,
first a findColumn, then a findValue. all the columns can be specified as either column
name or column number. All of the rows are searched until an exact match for all of the
findcol/fundval parameters are matched.
the second param, rowindex, is a variable which is assigned the row index found.
NOTE: if fuzzy is true then: (case is ignored; if matching columns, or
if matching cell values, use substrings)
fuzzy,
- booleanSAFSException
protected void commandAssignCellTextRow(boolean fuzzy) throws SAFSException
example step commands:
T, Window, Table, AssignCellTextRow, "aVariable", "Date", FindCol1, FindVal1, FindCol2, FindVal2,FindCol3,FindVal3
The first parameter, "aVariable", is a STAF variable which will contain the "found row number".
And "aVariable.value" will be a STAF variable which will contain the cell value.
The second param, "Date", is a "column header name" or "column number".
The rest of the params, "findcol/fundval ...", go in pairs, first a findColumn, then a findValue.
All the columns can be specified as either column name or column number. --> "given column"
All of the rows are searched until an exact match for all of the findcol/fundval parameters are matched. --> "found row number"
NOTE: if fuzzy is true then: (case is ignored; if matching columns, or if matching cell values, use substrings)
fuzzy,
- booleanSAFSException
protected void commandAssignVariableCellText(boolean fuzzy) throws SAFSException
example step commands:
T, JavaWin, JTable, AssignVariableCellText, AVariableName
Assign the value of cell 1,1 in JTable to DDVariable ^AVariableName.
T, JavaWin, JTable, AssignVariableCellText, "AVariableName", 2,3
Assign the value of cell 2,3 in JTable to DDVariable ^AVariableName.
T, JavaWin, JTable, AssignVariableCellText, "AVariableName", 4, "Field5"
Assign the value of cell 4, Field5 in JTable to DDVariable ^AVariableName.
The column is determined by matching the text "Field5" to the field headers in the JTable.
NOTE: if fuzzy is true then: (case is ignored; if matching columns, or
if matching cell values, use substrings)
fuzzy,
- boolean, if true then substrings or case insensitive matchSAFSException
protected void commandCaptureRangeToFile(boolean fuzzy) throws SAFSException
fuzzy
- boolean, if true then match substrings and ignore case for any
specified column names or row value identifiers.SAFSException
protected GuiTestObject getRealTable(java.lang.Object table) throws java.lang.IllegalArgumentException
table
- java.lang.IllegalArgumentException
getJCTable(TestObject)
protected java.util.List<java.util.List<java.lang.String>> captureObjectData(TestObject table) throws java.lang.IllegalArgumentException, SAFSException
captureObjectData
in class CFComponent
table
- GuiTestObject to snapshot data from.SAFSException
java.lang.IllegalArgumentException
- if table is not an acceptable GuiTestObject.CFComponent.captureObjectData(TestObject)
,
formatObjectData(java.util.List)
public java.lang.String formatObjectData(java.util.List list) throws java.lang.IllegalArgumentException
The List is expected to be a List of Lists as provided by our local captureObjectData. Each final item in the List will be output using its toString().trim() method.
It is expected the data is ready for writing to a file or other similar use without further modification.
formatObjectData
in class CFComponent
list
- List returned from captureObjectDatajava.lang.IllegalArgumentException
- if the List or the Object extracted from the List are null.captureObjectData(TestObject)
,
CFComponent.formatObjectData(java.util.List)
protected java.util.List getObjectData(GuiTestObject table, java.lang.Integer rrow, java.lang.Integer rrows, java.lang.String rowval, java.lang.Integer ccol, java.lang.Integer ccols, java.lang.String column, boolean fuzzy) throws java.lang.IllegalArgumentException, SAFSException
table
- GuiTestObject to snapshot data from.rrow
- Integer default row# to begin capture.
0 = first row. Null will force default to first row.rrows
- Integer of number of rows to capture.
Null means All.rowval
- String value in first column identifying first row to capture.
Null means start at first row.ccol
- Integer default column# to begin capture.
0 = first column. Null will force default to first column.ccols
- Integer of number of columns to capture.
Null means All.column
- String of column header text identifying column to start capture.
Null means start at specified default first column.fuzzy
- true if column and rowval text need NOT be an exact match.SAFSException
java.lang.IllegalArgumentException
getColi(boolean, String, GuiTestObject)
,
getRowi(boolean, Collection, GuiTestObject)
protected void actionCaptureRangeToFile(GuiTestObject guiObj, java.lang.Integer rrow, java.lang.Integer rrows, java.lang.String rowval, java.lang.Integer ccol, java.lang.Integer ccols, java.lang.String column, java.lang.String filename, boolean fuzzy, java.lang.String encoding) throws SAFSException
guiObj,
- GuiTestObjectrow,
- intcol,
- introwval,
- Stringcolumn,
- Stringvar,
- StringSAFSException
protected int getColi(boolean fuzzy, java.lang.String column, GuiTestObject guiObj) throws SAFSException
fuzzy,
- booleancolumn,
- StringguiObj,
- GuiSubitemTestObjectSAFSException
protected int getRowi(boolean fuzzy, java.util.Collection rowvalsParam, GuiTestObject guiObj) throws SAFSException
fuzzy,
- booleanrowvalsParam,
- Collection of collection, the inner collection is length 2
with the first element being the column number/name, and the second being the value;
if the element on the outer collection is not a collection, then we only look in the
first column for the 'value' of that element.guiObj,
- GuiSubitemTestObjectSAFSException,
- if no row found that matches exactlySAFSException
protected int getNumRows(TestObject jctable) throws SAFSException
jctable,
- TestObjectSAFSException
- based on caught Exceptionprotected int getNumColumns(TestObject jctable) throws SAFSException
jctable,
- TestObjectSAFSException
- based on caught Exceptionprotected Cell getCell(int row, int col) throws SAFSException
row,
- intcol,
- intSAFSException
- based on caught Exceptionprotected java.lang.Object getCell(TestObject jctable, int row, int col) throws SAFSException
jctable,
- TestObjectrow,
- intcol,
- intSAFSException
- based on caught Exception, like ClassCastExceptionprotected void actionAssign(GuiTestObject guiObj, int row, int col, java.lang.String rowval, java.lang.String column, java.lang.String var) throws SAFSException
guiObj,
- GuiTestObjectrow,
- intcol,
- introwval,
- Stringcolumn,
- Stringvar,
- StringSAFSException
protected void actionVerify(GuiTestObject guiObj, int row, int col, java.lang.String rowval, java.lang.String column, boolean fuzzy, java.lang.String val) throws SAFSException
guiObj,
- GuiTestObjectrow,
- intcol,
- introwval,
- Stringcolumn,
- Stringfuzzy,
- booleanval,
- StringSAFSException
public java.awt.Point convertCoords(java.lang.String coords)
The calling routine will have to determine whether the returned Point is an x,y coordinate or a row,col cell -- probably by checking for "Row" or "Col" text in the provided string just as we do internally.
convertCoords
in class ComponentFunction
coords,
- String x;y or x,y or Coords=x;y or Coords=x,y or
Row=y,Col=x or Col=x;Row=yprotected void doActionClick(GuiSubitemTestObject guiObj, int row, int col, java.lang.String rowval, java.lang.String colval) throws SAFSException
SubitemNotFoundException
java.lang.NullPointerException
WrappedException
SAFSException
- (often passed through the caller)protected void actionClick(GuiTestObject guiObj, int row, int col, java.lang.String rowval, java.lang.String column) throws SAFSException
guiObj,
- GuiTestObjectrow,
- intcol,
- intSAFSException
protected void actionClick(GuiTestObject guiObj, int row, int col, java.lang.Integer rrow2, java.lang.Integer ccol2, java.lang.String rowval, java.lang.String column) throws SAFSException
guiObj,
- GuiTestObjectrow,
- intcol,
- intSAFSException
protected TestObject getJCTable(TestObject jctable) throws SAFSException
jctable,
- TestObjectSAFSException
protected void commandGetCellCoordinates() throws SAFSException
SAFSException
protected void actionGetCellCoordinates(GuiTestObject guiObj, int row, int col, java.lang.String xCoordVariable, java.lang.String yCoordVariable) throws SAFSException
guiObj,
- GuiTestObjectrow,
- intcol,
- intString,
- xCoordVariableString,
- yCoordVariableSAFSException
protected void commandVerifyRowLabel() throws SAFSException
SAFSException
protected void actionVerifyRowLabel(GuiTestObject guiObj, java.lang.String val, int row) throws SAFSException
guiObj,
- GuiTestObjectval,
- Stringrow,
- intSAFSException
protected void commandVerifyColumnLabel() throws SAFSException
SAFSException
protected void actionVerifyColumnLabel(GuiTestObject guiObj, java.lang.String val, int col) throws SAFSException
guiObj,
- GuiTestObjectval,
- Stringcol,
- intSAFSException
protected void commandClickRowLabel() throws SAFSException
SAFSException
protected void actionClickRowLabel(GuiTestObject guiObj, int row, int xoffset) throws SAFSException
guiObj,
- GuiTestObjectrow,
- intOptional
- xoffset, intSAFSException
protected void commandClickColumnLabel() throws SAFSException
SAFSException
protected void actionClickColumnLabel(GuiTestObject guiObj, int col, int yoffset) throws SAFSException
guiObj,
- GuiTestObjectcol,
- intOptional
- yoffset, intSAFSException
protected java.awt.Rectangle getLocalRect(GuiTestObject jctable, int row, int col)
jctable
- GuiTestObjectrow
- intcol
- intprotected void commandVerifyCellEditable() throws SAFSException
first param is the row and second param is column (both from 1), the col
could be the name of the column, if non-numeric fuzzy, is it a partial match
on the column name or cell value.
NOTE: if fuzzy is true then: (case is ignored; if matching columns, or if matching
cell values, use substrings)
SAFSException
protected void actionVerifyCellEditable(GuiTestObject guiObj, int row, int col, boolean verifyFlag) throws SAFSException
example step commands:
T, JavaWin, JCTable, VerifyCellEditable, 2,5,true
Verifies the cell in the Table, at row = 2, col = 5 is ediable. Validates the cell property
to a known value.
guiObj,
- GuiTestObjectrow,
- intcol,
- intverifyFlag,
- booleanSAFSException
protected void commandSelectCellTextSpecial(boolean fuzzy) throws SAFSException
first param is the row and second param is column (both from 1), the col
could be the name of the column, if non-numeric fuzzy, is it a partial match
on the column name or cell value.
NOTE: if fuzzy is true then: (case is ignored; if matching columns, or if matching
cell values, use substrings)
SAFSException
protected void actionLocalSelectCellTextSpecial(GuiTestObject guiObj, int row, int col, java.lang.String rowval, java.lang.String column, boolean control, boolean shift, boolean leftRight) throws SAFSException, SubitemNotFoundException, java.lang.NullPointerException, WrappedException
SAFSException
SubitemNotFoundException
java.lang.NullPointerException
WrappedException
protected void actionSelectCellTextSpecial(GuiTestObject guiObj, int row, int col, java.lang.String rowval, java.lang.String column, boolean control, boolean shift, boolean leftRight) throws SAFSException
guiObj,
- GuiTestObjectrow,
- intcol,
- intcontrol,
- booleanshift,
- booleanleftRight,
- booleanSAFSException
protected void commandGetTableRowColumnCount() throws SAFSException
SAFSException
protected void actionGetTableRowColumnCount(GuiTestObject guiObj, java.lang.String rowCountVariable, java.lang.String colCountVariable) throws SAFSException
guiObj,
- GuiTestObjectString,
- rowCountVariableString,
- colCountVariableSAFSException
protected java.lang.String getColumnName(TestObject guiObj, int col)
guiObj
- Expected to be a Table with a getColumnName(i) method that returns a String.col
- the column to get the name of.protected java.lang.String[] getCellText(TestObject guiObj, TestObject tblModel, int row, int col)
guiObj
- The TestObject representing the TabletblModel
- The TestObject representing the Table Modelrow
- The row number in the table view NOT in Modelcol
- The column number in the table view NOT in Model
Returns String[]
String[0] = cell text value;
String[1] = cell column nameprotected java.lang.String getTableCellSubItemText(TestObject guiObj, int row, int col)
protected boolean isCustomCellObject(java.lang.String testObjectClass)
protected java.lang.String processCustomCellObject(TestObject tblModelValue)
protected java.lang.String getCellText(TestObject guiObj, int row, int col) throws SAFSException
guiObj
- row
- col
- SAFSException
Copyright © SAS Institute. All Rights Reserved.