public class SAPGuiMenuTestObject extends GuiTestObject
ignoreTheObjectState, ref
Constructor and Description |
---|
SAPGuiMenuTestObject(SpyMappedTestObject mappedObject)
For internal use.
|
SAPGuiMenuTestObject(SpyMappedTestObject mappedObject,
TestObject anchor)
For internal use.
|
SAPGuiMenuTestObject(SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
For internal use.
|
SAPGuiMenuTestObject(TestObjectReference ref)
For internal use.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.String method)
Invokes a method with no arguments on the object in the software under test.
|
java.lang.Object |
invoke(java.lang.String method,
java.lang.String methodSignature,
java.lang.Object[] args)
Invokes a method on the object in the software under test.
|
void |
select()
Programmaticly selects the current Menu.
|
canTakeVP, click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getClippedScreenRectangle, getImage, getImage, getIWindow, getRole, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getVisibleArea, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint
exists, exists, exists, find, find, findAndInvoke, findAndInvokeProxy, getProperty, getTestDataTypes, invokeProxy, unregister, waitForExistence
compare, compare, compareAndLog, compareAndLog, equals, find, findAndInvoke, getActualData, getChildren, getDescribedObject, getDescribedObjects, getDescriptiveName, getDomain, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMapProperties, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectCustomClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getProperties, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTopMappableParent, getTopParent, hashCode, invoke, invoke, invokeProxy, invokeProxy, isLoggedDuringUnregister, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setLoggedDuringUnregister, setMapProperties, setProperty, toString, updateTestData, waitForExistence
public SAPGuiMenuTestObject(SpyMappedTestObject mappedObject)
public SAPGuiMenuTestObject(SpyMappedTestObject mappedObject, TestObject anchor)
public SAPGuiMenuTestObject(SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
public SAPGuiMenuTestObject(TestObjectReference ref)
public void select()
public java.lang.Object invoke(java.lang.String method, java.lang.String methodSignature, java.lang.Object[] args)
invoke
,
which allows you to modify the software under test
in ways that a typical user cannot. If you use this method,
be sure to discuss its use with the developers of the software you
are testing.
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:
void myMethod(long n, String s, int[] arr)
has the following signature:
(JLjava.lang.String;[I)V
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 methodClientTestObject.unregister()
,
RationalTestScript.unregisterAll()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.getRegisteredTestObjects()
public java.lang.Object invoke(java.lang.String method)
invoke
,
which allows you to modify the software under test
in ways that a typical user cannot. If you use this method,
be sure to discuss its use with the developers of the software you
are testing.
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.
invoke
in class TestObject
method
- the name of the method to be calledmethodSignature
- the signature of the method to be called (using standard JNI syntax)invoke()
,
ClientTestObject.unregister()
,
RationalTestScript.unregisterAll()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.getRegisteredTestObjects()