public class FlexObjectTestObject extends GuiTestObject
ignoreTheObjectState, ref| Constructor and Description |
|---|
FlexObjectTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject) |
FlexObjectTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor) |
FlexObjectTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags) |
FlexObjectTestObject(TestObject obj) |
FlexObjectTestObject(com.rational.test.ft.object.TestObjectReference ref) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeFocus() |
void |
changeFocus(boolean shiftKey) |
void |
changeFocus(boolean shiftKey,
java.lang.String keyCode) |
void |
changeFocus(java.lang.String keyCode) |
void |
click()
Performs a left-mouse click on the center point of the associated
TestObject. |
void |
click(FlexKeyModifiers modifiers) |
void |
click(MouseModifiers modifiers)
Performs a left-mouse click on the specified object, relative
to the coordinates within the associated
TestObject. |
FlexObjectTestObject |
getAutomationChildAt(int childIndex)
This method returns the child/subitem at the given indexof a control.
|
protected java.lang.Object |
invokeProxyWithGuiDelay(java.lang.String method)
Invokes a method on the proxy for an object in the software under test.
|
protected java.lang.Object |
invokeProxyWithGuiDelay(java.lang.String method,
java.lang.String methodSignature,
java.lang.Object[] args)
Invokes a method on the proxy for an object in the software under test.
|
void |
performAction(java.lang.String eventName)
This method is generated while recording on a custom control without creating a proxy for it.
|
void |
performAction(java.lang.String eventName,
java.lang.Object[] eventArgs)
This method is generated while recording on a custom control without creating a proxy for it.
|
void |
performAction(java.lang.String eventName,
java.lang.String eventArgs)
This method is generated while recording on a custom control without creating a proxy for it.
|
void |
performAction(java.lang.String eventName,
java.lang.String arg1,
java.lang.String arg2)
This method is generated while recording on a custom control without creating a proxy for it.
|
void |
performAction(java.lang.String eventName,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
This method is generated while recording on a custom control without creating a proxy for it.
|
void |
performAction(java.lang.String eventName,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4)
This method is generated while recording on a custom control without creating a proxy for it.
|
boolean |
performTest(IFtVerificationPoint baseline)
Captures, compares and logs active data available relative to this
object instance against the supplied baseline data.
|
void |
setFocus() |
canTakeVP, 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, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, switchToexists, exists, exists, find, find, findAndInvoke, findAndInvokeProxy, getProperty, getTestDataTypes, invoke, invokeProxy, unregister, waitForExistencecompare, 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, invoke, invokeProxy, invokeProxy, isHtmlWebui, isLoggedDuringUnregister, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, setIndexer, setIndexer, setLoggedDuringUnregister, setMapProperties, setProperty, toString, updateTestData, waitForExistencepublic FlexObjectTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
public FlexObjectTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor)
public FlexObjectTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
public FlexObjectTestObject(com.rational.test.ft.object.TestObjectReference ref)
public FlexObjectTestObject(TestObject obj)
protected java.lang.Object invokeProxyWithGuiDelay(java.lang.String method,
java.lang.String methodSignature,
java.lang.Object[] args)
GuiTestObjectdelayBeforeGuiAction.
Note that invokeProxyWithGuiDelay
can directly modify the object in the software under test. Whenever possible, avoid using
this method, because it enables you to modify the software under test
in ways that a typical user cannot. If you use it,
be sure to discuss its use with the developers of the software that 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.
invokeProxyWithGuiDelay in class GuiTestObjectmethod - 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()protected java.lang.Object invokeProxyWithGuiDelay(java.lang.String method)
GuiTestObjectdelayBeforeGuiAction.
Note that invokeProxyWithGuiDelay
can directly modify the object in the software under test. Whenever possible, avoid using
this method, because it enables you to modify the software under test
in ways that a typical user cannot. If you use it,
be sure to discuss its use with the developers of the software that 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.
invokeProxyWithGuiDelay in class GuiTestObjectmethod - the name of the method to be calledClientTestObject.unregister(),
RationalTestScript.unregisterAll(),
RationalTestScript.unregister(Object[]),
RationalTestScript.getRegisteredTestObjects()public void click()
GuiTestObjectTestObject.
This method is a shortcut to the click method with a modifier
parameter. (The modifier is set to MOUSE_LEFT.)click in interface IGraphicalclick in class GuiTestObjectpublic void click(MouseModifiers modifiers)
GuiTestObjectTestObject.click in interface IGraphicalclick in class GuiTestObjectpublic void click(FlexKeyModifiers modifiers)
public void setFocus()
public void changeFocus()
public void changeFocus(boolean shiftKey,
java.lang.String keyCode)
public void changeFocus(java.lang.String keyCode)
public void changeFocus(boolean shiftKey)
public void performAction(java.lang.String eventName)
eventName - - the actual eventname/ action performedpublic void performAction(java.lang.String eventName,
java.lang.Object[] eventArgs)
eventName - - the actual eventname/ action performedeventArgs - - the argument array associated with the action performed - this is used to write the script manually for passing more than 4 argumentspublic void performAction(java.lang.String eventName,
java.lang.String eventArgs)
eventName - - the actual eventname/ action performedeventArgs - - the argument associated with the action performedpublic void performAction(java.lang.String eventName,
java.lang.String arg1,
java.lang.String arg2)
eventName - - the actual eventname/ action performedarg1 - - the argument associated with the action performedarg2 - - the argument associated with the action performedpublic void performAction(java.lang.String eventName,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
eventName - - the actual eventname/ action performedarg1 - - the argument associated with the action performedarg2 - - the argument associated with the action performedarg3 - - the argument associated with the action performedpublic void performAction(java.lang.String eventName,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4)
eventName - - the actual eventname/ action performedarg1 - - the argument associated with the action performedarg2 - - the argument associated with the action performedarg3 - - the argument associated with the action performedarg4 - - the argument associated with the action performedpublic FlexObjectTestObject getAutomationChildAt(int childIndex)
childIndex - index at which the item is being retrievedpublic boolean performTest(IFtVerificationPoint baseline)
TestObjectperformTest in class TestObjecttrue value is returned if the passing result is
logged, otherwise false is returned.TestObject.performTest(IFtVerificationPoint,boolean),
TestObject.performTest(IFtVerificationPoint,double,double),
TestObject.performTest(IFtVerificationPoint,double,double,boolean)