public class SAPGuiCtrlTextEditTestObject extends TextGuiTestObject
ignoreTheObjectState, ref
Constructor and Description |
---|
SAPGuiCtrlTextEditTestObject(SpyMappedTestObject mappedObject)
For internal use.
|
SAPGuiCtrlTextEditTestObject(SpyMappedTestObject mappedObject,
TestObject anchor)
For internal use.
|
SAPGuiCtrlTextEditTestObject(SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
For internal use.
|
SAPGuiCtrlTextEditTestObject(TestObjectReference ref)
For internal use.
|
Modifier and Type | Method and Description |
---|---|
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 |
findByName(java.lang.String name,
java.lang.String type) |
TestObject |
findByNameEx(java.lang.String name,
long type)
Better performance than FindByName
|
int |
getFirstVisibleLine()
This method returns the first visible line of the Textedit Object
|
java.lang.String |
getUnprotectedTextPart(int part)
Retrieves the content of an unprotected text part using the zero based index part.
|
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 |
pressF1()
Emulates Pressing F1 on the Keyboard.
|
void |
pressF4()
Emulates Pressing F4 on the Keyboard.
|
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.
|
void |
setFirstVisibleLine(java.lang.String lineNumber)
This method sets the first visible line of the Textedit Object
|
void |
setFocus()
Sets the focus.
|
void |
setSelectionIndexes(int start,
int end)
Sets the visually selected text range.
|
boolean |
setUnprotectedTextPart(int part,
java.lang.String text)
This function assigns the context of text to the unprotexted text part with zero based
index part.The function returns True if it was possible to perform the assignment.
|
void |
singleFileDropped(java.lang.String filename)
Emulates the drop of a single file with the directory path fileName.
|
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.
|
getText, setText
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
public SAPGuiCtrlTextEditTestObject(SpyMappedTestObject mappedObject)
public SAPGuiCtrlTextEditTestObject(SpyMappedTestObject mappedObject, TestObject anchor)
public SAPGuiCtrlTextEditTestObject(SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
public SAPGuiCtrlTextEditTestObject(TestObjectReference ref)
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 calledinvoke(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 methodTestObject.unregister()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.unregisterAll()
,
RationalTestScript.getRegisteredTestObjects()
public void setSelectionIndexes(int start, int end)
start
- end
- public java.lang.String getUnprotectedTextPart(int part)
part
- public boolean setUnprotectedTextPart(int part, java.lang.String text)
part
- text
- public void singleFileDropped(java.lang.String filename)
filename
- public void pressF1()
public void pressF4()
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)
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
- public void setFirstVisibleLine(java.lang.String lineNumber)
lineNumber
- public int getFirstVisibleLine()