|
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.SAPGuiUserAreaTestObject
public class SAPGuiUserAreaTestObject
Field Summary |
---|
Fields inherited from class com.rational.test.ft.object.interfaces.TestObject |
---|
ref |
Constructor Summary | |
---|---|
SAPGuiUserAreaTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
For internal use. |
|
SAPGuiUserAreaTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
For internal use. |
|
SAPGuiUserAreaTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
For internal use. |
|
SAPGuiUserAreaTestObject(TestObject obj)
Constructs one TestObject from another. |
|
SAPGuiUserAreaTestObject(com.rational.test.ft.object.TestObjectReference ref)
For internal use. |
Method Summary | |
---|---|
TestObject[] |
dumpState(java.lang.String innerObject)
Dumps the state of the object. |
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 |
findByLabel(java.lang.String text, java.lang.String type)
Find an object based on it's text label. |
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 |
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)
|
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 |
setFocus()
Sets the focus. |
void |
setHorizontalScrollBar(Position pos)
Scroll the horizontal scroll bar to the given position. |
void |
setVerticalScrollBar(Position pos)
Scroll the vertical scroll bar to the given position |
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 SAPGuiUserAreaTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
public SAPGuiUserAreaTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
public SAPGuiUserAreaTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
public SAPGuiUserAreaTestObject(com.rational.test.ft.object.TestObjectReference ref)
public SAPGuiUserAreaTestObject(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 selectContextMenuItem(java.lang.String functionCode)
functionCode
- 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 TestObject findByLabel(java.lang.String text, java.lang.String type)
text
- type
-
public void setVerticalScrollBar(Position pos)
pos
- public void setHorizontalScrollBar(Position pos)
pos
- 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 |