|
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.FrameTestObject com.rational.test.ft.object.interfaces.TopLevelTestObject com.rational.test.ft.object.interfaces.SAP.SAPTopLevelTestObject
public class SAPTopLevelTestObject
a top level object (GuiModalWindow or GuiMainWindow) in the SAPGUI Scripting framework.
Field Summary | |
---|---|
static int |
VKEY_CTRL_BSLASH
|
static int |
VKEY_CTRL_C
|
static int |
VKEY_CTRL_E
|
static int |
VKEY_CTRL_F
|
static int |
VKEY_CTRL_F1
|
static int |
VKEY_CTRL_F10
|
static int |
VKEY_CTRL_F11
|
static int |
VKEY_CTRL_F12
|
static int |
VKEY_CTRL_F2
|
static int |
VKEY_CTRL_F3
|
static int |
VKEY_CTRL_F4
|
static int |
VKEY_CTRL_F5
|
static int |
VKEY_CTRL_F6
|
static int |
VKEY_CTRL_F7
|
static int |
VKEY_CTRL_F8
|
static int |
VKEY_CTRL_F9
|
static int |
VKEY_CTRL_FSLASH
|
static int |
VKEY_CTRL_G
|
static int |
VKEY_CTRL_N
|
static int |
VKEY_CTRL_O
|
static int |
VKEY_CTRL_P
|
static int |
VKEY_CTRL_PAGEDOWN
|
static int |
VKEY_CTRL_PAGEUP
|
static int |
VKEY_CTRL_R
|
static int |
VKEY_CTRL_S
|
static int |
VKEY_CTRL_SHIFT_F1
|
static int |
VKEY_CTRL_SHIFT_F10
|
static int |
VKEY_CTRL_SHIFT_F11
|
static int |
VKEY_CTRL_SHIFT_F12
|
static int |
VKEY_CTRL_SHIFT_F2
|
static int |
VKEY_CTRL_SHIFT_F3
|
static int |
VKEY_CTRL_SHIFT_F4
|
static int |
VKEY_CTRL_SHIFT_F5
|
static int |
VKEY_CTRL_SHIFT_F6
|
static int |
VKEY_CTRL_SHIFT_F7
|
static int |
VKEY_CTRL_SHIFT_F8
|
static int |
VKEY_CTRL_SHIFT_F9
|
static int |
VKEY_CTRL_V
|
static int |
VKEY_CTRL_X
|
static int |
VKEY_CTRL_Z
|
static int |
VKEY_ENTER
Virtual Key contants used by SAP. |
static int |
VKEY_F1
|
static int |
VKEY_F10
|
static int |
VKEY_F12
|
static int |
VKEY_F2
|
static int |
VKEY_F3
|
static int |
VKEY_F4
|
static int |
VKEY_F5
|
static int |
VKEY_F6
|
static int |
VKEY_F7
|
static int |
VKEY_F8
|
static int |
VKEY_F9
|
static int |
VKEY_PAGEDOWN
|
static int |
VKEY_PAGEUP
|
static int |
VKEY_SHIFT_CTRL_0
|
static int |
VKEY_SHIFT_F1
|
static int |
VKEY_SHIFT_F11
|
static int |
VKEY_SHIFT_F12
|
static int |
VKEY_SHIFT_F2
|
static int |
VKEY_SHIFT_F3
|
static int |
VKEY_SHIFT_F4
|
static int |
VKEY_SHIFT_F5
|
static int |
VKEY_SHIFT_F6
|
static int |
VKEY_SHIFT_F7
|
static int |
VKEY_SHIFT_F8
|
static int |
VKEY_SHIFT_F9
|
Fields inherited from class com.rational.test.ft.object.interfaces.TestObject |
---|
ref |
Fields inherited from interface com.rational.test.ft.object.interfaces.ITopWindow |
---|
INPUTCHARS_METHOD, INPUTKEYS_METHOD |
Constructor Summary | |
---|---|
SAPTopLevelTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
For internal use. |
|
SAPTopLevelTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
For internal use. |
|
SAPTopLevelTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
For internal use. |
|
SAPTopLevelTestObject(TestObject obj)
Constructs one TestObject from another. |
|
SAPTopLevelTestObject(com.rational.test.ft.object.TestObjectReference ref)
For internal use. |
Method Summary | |
---|---|
void |
createSession()
Create a session |
SAPGuiApplicationTestObject |
getApplication()
Get the SAP Application object associated with this window. |
SAPGuiConnectionTestObject |
getConnection()
Get the SAP Connection object associated with this window |
SAPGuiSessionTestObject |
getSession()
Get the SAP Session object associated with this window. |
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 |
isVKeyAllowed(int vKey)
Determines if a given virtual key is allowed. |
void |
resizeWorkingPane(int width, int height, boolean throwOnFail)
Resizes the window so that the working area has the given width and height in character metric. |
void |
sendVKey(int vKey)
Sends a virtual key to the application |
void |
setFocus()
Sets the focus. |
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.TopLevelTestObject |
---|
activate, clickDisabled, close, inputChars, inputKeys, isIconified, maximize, minimize, move, resize, restore |
Methods inherited from class com.rational.test.ft.object.interfaces.FrameTestObject |
---|
contextHelp |
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 |
Methods inherited from interface com.rational.test.ft.object.interfaces.IFrame |
---|
contextHelp |
Methods inherited from interface com.rational.test.ft.object.interfaces.IGraphical |
---|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getChildAtPoint, getClippedScreenRectangle, getScreenPoint, getScreenPoint, getScreenRectangle, hasFocus, hover, hover, hover, hover, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint |
Field Detail |
---|
public static int VKEY_ENTER
public static int VKEY_F1
public static int VKEY_F2
public static int VKEY_F3
public static int VKEY_F4
public static int VKEY_F5
public static int VKEY_F6
public static int VKEY_F7
public static int VKEY_F8
public static int VKEY_F9
public static int VKEY_F10
public static int VKEY_CTRL_S
public static int VKEY_F12
public static int VKEY_SHIFT_F1
public static int VKEY_SHIFT_F2
public static int VKEY_SHIFT_F3
public static int VKEY_SHIFT_F4
public static int VKEY_SHIFT_F5
public static int VKEY_SHIFT_F6
public static int VKEY_SHIFT_F7
public static int VKEY_SHIFT_F8
public static int VKEY_SHIFT_F9
public static int VKEY_SHIFT_CTRL_0
public static int VKEY_SHIFT_F11
public static int VKEY_SHIFT_F12
public static int VKEY_CTRL_F1
public static int VKEY_CTRL_F2
public static int VKEY_CTRL_F3
public static int VKEY_CTRL_F4
public static int VKEY_CTRL_F5
public static int VKEY_CTRL_F6
public static int VKEY_CTRL_F7
public static int VKEY_CTRL_F8
public static int VKEY_CTRL_F9
public static int VKEY_CTRL_F10
public static int VKEY_CTRL_F11
public static int VKEY_CTRL_F12
public static int VKEY_CTRL_SHIFT_F1
public static int VKEY_CTRL_SHIFT_F2
public static int VKEY_CTRL_SHIFT_F3
public static int VKEY_CTRL_SHIFT_F4
public static int VKEY_CTRL_SHIFT_F5
public static int VKEY_CTRL_SHIFT_F6
public static int VKEY_CTRL_SHIFT_F7
public static int VKEY_CTRL_SHIFT_F8
public static int VKEY_CTRL_SHIFT_F9
public static int VKEY_CTRL_SHIFT_F10
public static int VKEY_CTRL_SHIFT_F11
public static int VKEY_CTRL_SHIFT_F12
public static int VKEY_CTRL_E
public static int VKEY_CTRL_F
public static int VKEY_CTRL_FSLASH
public static int VKEY_CTRL_BSLASH
public static int VKEY_CTRL_N
public static int VKEY_CTRL_O
public static int VKEY_CTRL_X
public static int VKEY_CTRL_C
public static int VKEY_CTRL_V
public static int VKEY_CTRL_Z
public static int VKEY_CTRL_PAGEUP
public static int VKEY_PAGEUP
public static int VKEY_PAGEDOWN
public static int VKEY_CTRL_PAGEDOWN
public static int VKEY_CTRL_G
public static int VKEY_CTRL_R
public static int VKEY_CTRL_P
Constructor Detail |
---|
public SAPTopLevelTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
public SAPTopLevelTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
public SAPTopLevelTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
public SAPTopLevelTestObject(com.rational.test.ft.object.TestObjectReference ref)
public SAPTopLevelTestObject(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 resizeWorkingPane(int width, int height, boolean throwOnFail)
width
- the width (in "characters")height
- the height (in "characters")throwOnFail
- whether SAPGUI should throw an exception if resize failspublic boolean isVKeyAllowed(int vKey)
vKey
- the virtual eky code public void sendVKey(int vKey)
vKey
- the virtual key codepublic SAPGuiApplicationTestObject getApplication()
public SAPGuiSessionTestObject getSession()
public void createSession()
public SAPGuiConnectionTestObject getConnection()
public void setFocus()
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 |