|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.object.interfaces.TestObject com.rational.test.ft.object.interfaces.ClientTestObject com.rational.test.ft.object.interfaces.GuiTestObject com.rational.test.ft.object.interfaces.SAP.SAPGuiCtrlTreeTestObject
public class SAPGuiCtrlTreeTestObject
Field Summary |
---|
Fields inherited from class com.rational.test.ft.object.interfaces.TestObject |
---|
ref |
Constructor Summary | |
---|---|
SAPGuiCtrlTreeTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
For internal use. |
|
SAPGuiCtrlTreeTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
For internal use. |
|
SAPGuiCtrlTreeTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
For internal use. |
|
SAPGuiCtrlTreeTestObject(TestObject obj)
Constructs one TestObject from another. |
|
SAPGuiCtrlTreeTestObject(com.rational.test.ft.object.TestObjectReference ref)
For internal use. |
Method Summary | |
---|---|
void |
changeCheckbox(Subitem nodePath, java.lang.String itemName, boolean check)
Emulates changing a checkbox state. |
void |
clickLink(Subitem nodePath, java.lang.String itemName)
Emulates triggering a link. |
void |
clickLinkByKey(java.lang.String nodeKey, java.lang.String itemName)
Emulates triggering a link. |
void |
collapseNode(Subitem nodePath)
Closes the node with the name nodeName. |
void |
collapseNodeByKey(java.lang.String nodeKey)
Closes the node with the key nodeKey. |
void |
defaultContextMenu()
Requests a context menu for the whole Tree Control. |
void |
doubleClickItem(Subitem nodePath, java.lang.String itemName)
Emulates double clicking on a text item. |
void |
doubleClickItemByKey(java.lang.String nodeKey, java.lang.String itemName)
Emulates double clicking on a text item. |
void |
doubleClickNode(Subitem nodePath)
Emulates double clicking a node. |
void |
doubleClickNodeByKey(java.lang.String nodeKey)
Emulates double clicking a node. |
TestObject[] |
dumpState(java.lang.String innerObject)
Dumps the state of the object. |
void |
ensureVisibleHorizontalItem(Subitem nodePath, java.lang.String itemName)
Scrolls the Tree horizontally until the Item is visible. |
void |
ensureVisibleHorizontalItemByKey(java.lang.String nodeKey, java.lang.String itemName)
Scrolls the Tree horizontally until the Item is visible. |
void |
expandNode(Subitem nodePath)
Expands the node with the key nodeKey. |
void |
expandNodeByKey(java.lang.String nodeKey)
Expands the node with the key nodeKey. |
TestObject[] |
findAllByName(java.lang.String name, java.lang.String type)
The methods findByName and findByNameEx return only the first object with matching name and type. |
TestObject[] |
findAllByNameEx(java.lang.String name, long type)
Better performance than FindAllByName |
TestObject |
findById(java.lang.String id, boolean raiseEx)
Search through the object's descendants for a given id. |
TestObject |
findByName(java.lang.String name, java.lang.String type)
Unlike findById, this function does not guarantee a unique result. |
TestObject |
findByNameEx(java.lang.String name, long type)
Better performance than FindByName |
java.lang.Object |
findnodeKeyByPath(java.lang.String path)
Find the key of the tree node from path |
java.lang.Object |
findnodeKeyByPath(Subitem nodePath)
Find the key of the tree node from path |
int |
getCheckBoxState(Subitem nodePath, java.lang.String itemName)
Retrieves the CheckBox state (1 = Checked, 0 = Unchecked). |
int |
getCheckBoxStateByKey(java.lang.String nodeKey, java.lang.String itemName)
Retrieves the CheckBox state (1 = Checked, 0 = Unchecked). |
java.lang.String[] |
getColumnCol(java.lang.String colName)
Returns the keys of all the items in the given column. |
java.lang.String[] |
getColumnHeaders()
Returns the collection of the titles of the columns. |
java.lang.String |
getColumnNameFromTitle(java.lang.String colTitle)
Gets the SAP dictionary specific name of the column in the tree given the diplayed title |
java.lang.String[] |
getColumnNames()
Returns a collection of the column names. |
java.lang.String |
getColumnTitleFromName(java.lang.String colName)
Gets the displayed Column Title given the name of the column |
java.lang.String[] |
getColumnTitles()
|
java.lang.String |
getFocusedNodeKey()
Gets the key of the focused tree node. |
java.lang.String |
getItemText(java.lang.String key, java.lang.String name)
Returns the text of the item specified by the key and name parameters. |
java.lang.String |
getNextNodeKey(Subitem nodePath)
Returns the next node key of the tree node. |
java.lang.String |
getNextNodeKeyByKey(java.lang.String nodeKey)
Returns the next node key of the tree node. |
int |
getNodeChildrenCount(java.lang.String key)
Returns the number of children of the node given by the key parameter. |
int |
getNodeChildrenCountByPath(java.lang.String path)
Returns the number of children of the node given by the path parameter. |
int |
getNodeChildrenCountByPath(Subitem nodePath)
Returns the number of children of the node given by the path parameter. |
java.lang.String |
getNodeKeyByPath(java.lang.String path)
Return the key of the node specified by the given path description. |
java.lang.String |
getNodeKeyByPath(Subitem nodePath)
Return the key of the node specified by the given path description. |
java.lang.String |
getNodePathByKey(java.lang.String key)
Given a node key, the path is retrieved (e.g. |
java.lang.String[] |
getNodesCol()
Returns the collection that contains the node keys of all the nodes in the tree. |
java.lang.String |
getNodeTextByKey(java.lang.String key)
This function returns the text of the node specified by the given key. |
java.lang.String |
getNodeTextByPath(java.lang.String path)
Returns the text of a node defined by the given path. |
java.lang.Object |
getSelectedNodes()
Returns the selected nodes. |
int |
getSelectionMode()
Selection mode of the tree controls |
java.lang.String[] |
getSubNodesCol(java.lang.String key)
Returns the collection of the keys of all subnodes of the node specified by the given key. |
int |
getTreeType()
Retruns the type of the tree control. |
java.lang.Object |
invoke(java.lang.String method)
Invokes a method with no args on the object in the software under test. |
java.lang.Object |
invoke(java.lang.String method, java.lang.String methodSignature, java.lang.Object[] args)
|
boolean |
IsFolder(Subitem nodePath)
Check if the node with the node name is a folder. |
boolean |
IsFolderExpandable(Subitem nodePath)
Check if the folder node is expandable. |
boolean |
IsFolderExpanded(Subitem nodePath)
Check if the folder is expanded. |
void |
itemContextMenu(Subitem nodePath, java.lang.String itemName)
Requests a context menu for an item. |
void |
itemContextMenuByKey(java.lang.String nodeKey, java.lang.String itemName)
Requests a context menu for an item. |
void |
nodeContextMenu(Subitem nodePath)
Requests a context menu for a node. |
void |
nodeContextMenuByKey(java.lang.String nodeKey)
Requests a context menu for a node. |
void |
pressButton(Subitem nodePath, java.lang.String itemName)
Emulates pressing a button. |
void |
pressButtonByKey(java.lang.String nodeKey, java.lang.String itemName)
Emulates pressing a button. |
void |
pressHeader(java.lang.String headerName)
Emulates clicking a header. |
void |
pressKey(java.lang.String key)
Emulates pressing a key. |
java.lang.String |
selectColumn(java.lang.String columnName)
Adds a column to the column selection. |
void |
selectContextMenuByPosition(java.lang.String positionDesc)
Select a context menu item using the position of the item. |
void |
selectContextMenuItem(java.lang.String functionCode)
Select an item from the control's context menu. |
void |
selectContextMenuItemByText(java.lang.String text)
Select an item in a context menu based on it's text, optionally with text from parent menu items. |
java.lang.String |
selectedItemColumn()
selectedItemColumn |
java.lang.String |
selectedItemNode()
selectedItemNode |
void |
selectItem(Subitem nodePath, java.lang.String itemName)
Emulates the selection of an item. |
void |
selectItemByKey(java.lang.String nodeKey, java.lang.String itemName)
Emulates the selection of an item. |
void |
selectNode(Subitem nodePath)
The node with the name nodeName is added to the Node Selection. |
void |
selectNodeByKey(java.lang.String nodeKey)
The node with the key nodeKey is added to the Node Selection. |
java.lang.Object |
setCheckBoxState(Subitem nodePath, java.lang.String itemName, int state)
Sets the state of the checkbox. |
java.lang.Object |
setCheckBoxStateByKey(java.lang.String nodeKey, java.lang.String itemName, int state)
Sets the state of the checkbox. |
java.lang.Object |
setColumnWidth(java.lang.String columnName, int Width)
Sets the width of a column in pixels. |
void |
setFocus()
Sets the focus. |
void |
setHierarchyHeaderWidth(int width)
Sets the width of the Hierarchy Header in pixels. |
void |
setSelectedNode(Subitem nodePath)
Set the currently selected node to tree node with nodeName. |
void |
setSelectedNodeByKey(java.lang.String nodeKey)
Set the currently selected node to tree node with nodeKey. |
void |
setTopNode(Subitem nodePath)
Sets the top node to the tree node with the name nodeName. |
void |
setTopNodeByKey(java.lang.String nodeKey)
Sets the top node to the tree node with the key nodeKey. |
void |
unselectAll()
Removes all selection. |
void |
unselectColumn(java.lang.String columnName)
Removes a column from the column selection. |
void |
unselectNode(Subitem nodePath)
|
void |
unselectNodeByKey(java.lang.String nodeKey)
Removes the node with the name nodeNmae from the Node selection. |
boolean |
visualize(boolean on, java.lang.String innerObject)
Calling this method of a component will display a red frame around the specified component if the parameter on is true. |
Methods inherited from class com.rational.test.ft.object.interfaces.GuiTestObject |
---|
canTakeVP, click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getClippedScreenRectangle, getImage, getImage, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getVisibleArea, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint |
Methods inherited from class com.rational.test.ft.object.interfaces.ClientTestObject |
---|
exists, find, find, findAndInvoke, findAndInvokeProxy, invokeProxy, unregister, waitForExistence |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SAPGuiCtrlTreeTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
public SAPGuiCtrlTreeTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
public SAPGuiCtrlTreeTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
public SAPGuiCtrlTreeTestObject(com.rational.test.ft.object.TestObjectReference ref)
public SAPGuiCtrlTreeTestObject(TestObject obj)
Method Detail |
---|
public java.lang.Object invoke(java.lang.String method)
If the returned object is not a value class, invoke registers the object and returns a reference to the object in the software under test. As always, registered object references should be released by calling one of the unregister methods.
invoke
in class TestObject
method
- The name of the method to be called invoke(String,String,Object[])
,
TestObject.unregister()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.unregisterAll()
,
RationalTestScript.getRegisteredTestObjects()
public java.lang.Object invoke(java.lang.String method, java.lang.String methodSignature, java.lang.Object[] args)
If the returned object is not a value class, invoke registers the object and returns a reference to the object in the software under test. Registered object references are released by calling one of the unregister methods.
The methodSignature uses JNI syntax to describe the parameter types and optionally the return value types for the method. The general syntax has the parameter types in parentheses, followed by the return type: (parameterTypes)returnType. Note that the returnType is not a required part of the signature - it can be omitted. There are specific encodings for the primitive types, and then a general encoding for class types.
Code | Type |
---|---|
Z | boolean |
B | byte |
C | char |
S | short |
I | int |
J | long |
F | float |
D | double |
V | void |
Lfully-qualified-class; | For example: Ljava.lang.string; |
In addition, arrays are specified by combining the brace character '[' with another type. For example, [I is an array of integers, [[I is an array of arrays of integers and [Ljava.lang.Object; is an array of Objects. Another example:
has the following signature:
invoke
in class ClientTestObject
method
- the name of the method to be calledmethodSignature
- the signature of the method to be called (using standard JNI syntax)args
- the arguments to be passed to the method TestObject.unregister()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.unregisterAll()
,
RationalTestScript.getRegisteredTestObjects()
public void doubleClickNodeByKey(java.lang.String nodeKey)
nodeKey
- key of the tree nodepublic void doubleClickNode(Subitem nodePath)
nodeName
- name of the tree nodepublic void changeCheckbox(Subitem nodePath, java.lang.String itemName, boolean check)
nodeName
- name of the NodeitemName
- itemNamecheck
- true/falsepublic void clickLinkByKey(java.lang.String nodeKey, java.lang.String itemName)
nodeKey
- key of the TreeNodeitemName
- item Namepublic void clickLink(Subitem nodePath, java.lang.String itemName)
nodeName
- name of the TreeNodeitemName
- item Namepublic void collapseNodeByKey(java.lang.String nodeKey)
nodeKey
- key of the TreeNodepublic void collapseNode(Subitem nodePath)
nodeName
- name of the TreeNodepublic void defaultContextMenu()
public void doubleClickItemByKey(java.lang.String nodeKey, java.lang.String itemName)
nodeName
- key of the tree nodeitemName
- item namepublic void doubleClickItem(Subitem nodePath, java.lang.String itemName)
nodeName
- name of the tree nodeitemName
- item namepublic void ensureVisibleHorizontalItemByKey(java.lang.String nodeKey, java.lang.String itemName)
nodeKey
- key of the node treeitemName
- item namepublic void ensureVisibleHorizontalItem(Subitem nodePath, java.lang.String itemName)
nodeName
- name of the node treeitemName
- item namepublic void expandNodeByKey(java.lang.String nodeKey)
nodeKey
- key of the tree nodepublic void expandNode(Subitem nodePath)
nodeName
- name of the tree nodepublic java.lang.Object findnodeKeyByPath(java.lang.String path)
path
- path of the tree node public java.lang.Object findnodeKeyByPath(Subitem nodePath)
path
- path of the tree node public int getCheckBoxStateByKey(java.lang.String nodeKey, java.lang.String itemName)
nodeKey
- key of the tree node.itemName
- item name.
public int getCheckBoxState(Subitem nodePath, java.lang.String itemName)
nodeName
- name of the tree node.itemName
- item name.
public java.lang.String[] getColumnCol(java.lang.String colName)
colName
- name of the column public java.lang.String[] getColumnHeaders()
public java.lang.String[] getColumnNames()
public java.lang.String[] getColumnTitles()
public java.lang.String getColumnTitleFromName(java.lang.String colName)
public java.lang.String getColumnNameFromTitle(java.lang.String colTitle)
public java.lang.String getFocusedNodeKey()
public java.lang.String getItemText(java.lang.String key, java.lang.String name)
key
- name
-
public java.lang.String getNextNodeKeyByKey(java.lang.String nodeKey)
nodeKey
-
public java.lang.String getNextNodeKey(Subitem nodePath)
nodeName
-
public int getNodeChildrenCount(java.lang.String key)
key
- key of the tree node.
public int getNodeChildrenCountByPath(java.lang.String path)
path
-
public int getNodeChildrenCountByPath(Subitem nodePath)
path
-
public java.lang.String getNodeKeyByPath(java.lang.String path)
path
- path of the tree node.
public java.lang.String getNodeKeyByPath(Subitem nodePath)
path
- path of the tree node.
public java.lang.String getNodePathByKey(java.lang.String key)
key
-
public java.lang.String[] getNodesCol()
public java.lang.String getNodeTextByKey(java.lang.String key)
key
-
public java.lang.String getNodeTextByPath(java.lang.String path)
path
- the path of the tree node.
public java.lang.Object getSelectedNodes()
public int getSelectionMode()
public java.lang.String[] getSubNodesCol(java.lang.String key)
key
-
public int getTreeType()
public boolean IsFolder(Subitem nodePath)
nodeName
- name of the tree node.
public boolean IsFolderExpandable(Subitem nodePath)
nodeName
- name of the tree node public boolean IsFolderExpanded(Subitem nodePath)
nodeName
- name of the tree node.
public void itemContextMenuByKey(java.lang.String nodeKey, java.lang.String itemName)
nodeKey
- itemName
- public void itemContextMenu(Subitem nodePath, java.lang.String itemName)
nodeName
- itemName
- public void nodeContextMenuByKey(java.lang.String nodeKey)
nodeKey
- public void nodeContextMenu(Subitem nodePath)
nodeName
- public void pressButtonByKey(java.lang.String nodeKey, java.lang.String itemName)
nodeKey
- itemName
- public void pressButton(Subitem nodePath, java.lang.String itemName)
nodeName
- itemName
- public void pressHeader(java.lang.String headerName)
headerName
- public void pressKey(java.lang.String key)
key
- Possible values are: F1, F4, Delete, Insert, Enter, Cut, Copy, and Pastepublic java.lang.String selectColumn(java.lang.String columnName)
columnName
-
public java.lang.String selectedItemColumn()
public void selectItemByKey(java.lang.String nodeKey, java.lang.String itemName)
nodeKey
- key of the tree nodeitemName
- item namepublic void selectItem(Subitem nodePath, java.lang.String itemName)
nodeName
- key of the tree nodeitemName
- item namepublic void selectNodeByKey(java.lang.String nodeKey)
nodeKey
- key of the tree nodepublic void selectNode(Subitem nodePath)
nodeName
- name of the tree nodepublic java.lang.String selectedItemNode()
public void setSelectedNodeByKey(java.lang.String nodeKey)
nodeKey
- key of the tree nodepublic void setSelectedNode(Subitem nodePath)
nodeName
- name of the tree nodepublic java.lang.Object setCheckBoxStateByKey(java.lang.String nodeKey, java.lang.String itemName, int state)
nodeKey
- key of the tree nodeitemName
- item namestate
- state public java.lang.Object setCheckBoxState(Subitem nodePath, java.lang.String itemName, int state)
nodeName
- name of the tree nodeitemName
- item namestate
- state public java.lang.Object setColumnWidth(java.lang.String columnName, int Width)
columnName
- Width
-
public void setHierarchyHeaderWidth(int width)
width
- public void setTopNodeByKey(java.lang.String nodeKey)
nodeKey
- public void setTopNode(Subitem nodePath)
nodeName
- public void unselectAll()
public void unselectColumn(java.lang.String columnName)
columnName
- public void unselectNodeByKey(java.lang.String nodeKey)
nodeKey
- public void unselectNode(Subitem nodePath)
public void selectContextMenuItem(java.lang.String functionCode)
functionCode
- public void selectContextMenuItemByText(java.lang.String text)
text
- public void selectContextMenuByPosition(java.lang.String positionDesc)
positionDesc
- The parameter is a string containing the path to the item.
If the context menu item is on the top level menu, this is just the zero-base index of the item. Otherwise, the positions
on the menu and respective submenus should be concatenated, separated by "|".public TestObject findByName(java.lang.String name, java.lang.String type)
name
- type
-
public TestObject findById(java.lang.String id, boolean raiseEx)
id
- raiseEx
-
public TestObject findByNameEx(java.lang.String name, long type)
name
- type
-
public TestObject[] findAllByName(java.lang.String name, java.lang.String type)
name
- type
-
public TestObject[] findAllByNameEx(java.lang.String name, long type)
name
- type
-
public void setFocus()
public TestObject[] dumpState(java.lang.String innerObject)
innerObject
- used to specify what internal object should be dumped (on supported controls public boolean visualize(boolean on, java.lang.String innerObject)
on
- bool indicating whether or not the highlight rectangle should be oninnerObject
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |