IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.object.interfaces.flex
Class FlexObjectTestObject

java.lang.Object   extended by com.rational.test.ft.object.interfaces.TestObject
      extended by com.rational.test.ft.object.interfaces.ClientTestObject
          extended by com.rational.test.ft.object.interfaces.GuiTestObject
              extended by com.rational.test.ft.object.interfaces.flex.FlexObjectTestObject
All Implemented Interfaces:
IGraphical
Direct Known Subclasses:
FlexButtonTestObject, FlexChartSeriesTestObject, FlexChartTestObject, FlexComboBaseTestObject, FlexContainerTestObject, FlexDateChooserTestObject, FlexListLabelTestObject, FlexMenuBarTestObject, FlexNumericStepperTestObject, FlexScrollBarTestObject, FlexScrollBaseTestObject, FlexSliderTestObject

public class FlexObjectTestObject
extends GuiTestObject


Field Summary
 
Fields inherited from class com.rational.test.ft.object.interfaces.TestObject
ref
 
Constructor Summary
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)
           
 
Method Summary
 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()
           
 
Methods inherited from class com.rational.test.ft.object.interfaces.GuiTestObject
canTakeVP, 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, 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, invoke, invokeProxy, unregister, waitForExistence
 
Methods inherited from class com.rational.test.ft.object.interfaces.TestObject
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, getProperty, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTestDataTypes, getTopMappableParent, getTopParent, hashCode, invoke, invokeProxy, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, setIndexer, setIndexer, setMapProperties, setProperty, toString, updateTestData, waitForExistence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlexObjectTestObject

public FlexObjectTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)

FlexObjectTestObject

public FlexObjectTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,                             TestObject anchor)

FlexObjectTestObject

public FlexObjectTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,                             TestObject anchor,                             long scriptCommandFlags)

FlexObjectTestObject

public FlexObjectTestObject(com.rational.test.ft.object.TestObjectReference ref)

FlexObjectTestObject

public FlexObjectTestObject(TestObject obj)
Method Detail

invokeProxyWithGuiDelay

protected java.lang.Object invokeProxyWithGuiDelay(java.lang.String method,                                                    java.lang.String methodSignature,                                                    java.lang.Object[] args)
Description copied from class: GuiTestObject
Invokes a method on the proxy for an object in the software under test. This version also waits according to the standard delayBeforeGuiAction. 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.

Overrides:
invokeProxyWithGuiDelay in class GuiTestObject
Parameters:
method - the name of the method to be called
methodSignature - the signature of the method to be called (using standard JNI syntax)
args - the arguments to be passed to the method
Returns:
An object in the software under test
See Also:
ClientTestObject.unregister(), RationalTestScript.unregisterAll(), RationalTestScript.unregister(Object[]), RationalTestScript.getRegisteredTestObjects()

invokeProxyWithGuiDelay

protected java.lang.Object invokeProxyWithGuiDelay(java.lang.String method)
Description copied from class: GuiTestObject
Invokes a method on the proxy for an object in the software under test. This version also waits according to the standard delayBeforeGuiAction. 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.

Overrides:
invokeProxyWithGuiDelay in class GuiTestObject
Parameters:
method - the name of the method to be called
Returns:
An object in the software under test
See Also:
ClientTestObject.unregister(), RationalTestScript.unregisterAll(), RationalTestScript.unregister(Object[]), RationalTestScript.getRegisteredTestObjects()

click

public void click()
Description copied from class: GuiTestObject
Performs a left-mouse click on the center point of the associated TestObject. This method is a shortcut to the click method with a modifier parameter. (The modifier is set to MOUSE_LEFT.)

Specified by:
click in interface IGraphical
Overrides:
click in class GuiTestObject

click

public void click(MouseModifiers modifiers)
Description copied from class: GuiTestObject
Performs a left-mouse click on the specified object, relative to the coordinates within the associated TestObject.

Specified by:
click in interface IGraphical
Overrides:
click in class GuiTestObject

click

public void click(FlexKeyModifiers modifiers)

setFocus

public void setFocus()

changeFocus

public void changeFocus()

changeFocus

public void changeFocus(boolean shiftKey,                         java.lang.String keyCode)

changeFocus

public void changeFocus(java.lang.String keyCode)

changeFocus

public void changeFocus(boolean shiftKey)

performAction

public void performAction(java.lang.String eventName)
This method is generated while recording on a custom control without creating a proxy for it.

Parameters:
eventName - - the actual eventname/ action performed

performAction

public 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.

Parameters:
eventName - - the actual eventname/ action performed
eventArgs - - the argument array associated with the action performed - this is used to write the script manually for passing more than 4 arguments

performAction

public 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.

Parameters:
eventName - - the actual eventname/ action performed
eventArgs - - the argument associated with the action performed

performAction

public 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.

Parameters:
eventName - - the actual eventname/ action performed
arg1 - - the argument associated with the action performed
arg2 - - the argument associated with the action performed

performAction

public 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.

Parameters:
eventName - - the actual eventname/ action performed
arg1 - - the argument associated with the action performed
arg2 - - the argument associated with the action performed
arg3 - - the argument associated with the action performed

performAction

public 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.

Parameters:
eventName - - the actual eventname/ action performed
arg1 - - the argument associated with the action performed
arg2 - - the argument associated with the action performed
arg3 - - the argument associated with the action performed
arg4 - - the argument associated with the action performed

getAutomationChildAt

public FlexObjectTestObject getAutomationChildAt(int childIndex)
This method returns the child/subitem at the given indexof a control. For. eg getAutomationChildAt(index 1) of a combobox will return the subitem at index 1 in the combobox.

Parameters:
childIndex - index at which the item is being retrieved
Returns:
the child/subitem at the given index

performTest

public boolean performTest(IFtVerificationPoint baseline)
Description copied from class: TestObject
Captures, compares and logs active data available relative to this object instance against the supplied baseline data.

Overrides:
performTest in class TestObject
Returns:
A true value is returned if the passing result is logged, otherwise false is returned.
See Also:
TestObject.performTest(IFtVerificationPoint,boolean), TestObject.performTest(IFtVerificationPoint,double,double), TestObject.performTest(IFtVerificationPoint,double,double,boolean)