com.rational.test.ft.domain.flex

Class FlexListProxy

  • All Implemented Interfaces:
    com.rational.test.ft.domain.IChannelObject, com.rational.test.ft.domain.IDataDriven, com.rational.test.ft.domain.IProxyBase, com.rational.test.ft.object.interfaces.IGraphical
    Direct Known Subclasses:
    FlexMenuProxy, FlexTreeProxy


    public class FlexListProxy
    extends FlexListBaseProxy
    • Field Detail

      • FLEXMENUCLASSNAME

        protected static final java.lang.String FLEXMENUCLASSNAME
        See Also:
        Constant Field Values
    • Method Detail

      • getRole

        public java.lang.String getRole()
        Description copied from class: FlexObjectProxy
        Returns a brief type name that describes the role this object plays in the UI. For instance a java.awt.Button might return button. There are suggested role constants in the TestObjectRole class. However, proxies are not limited to these constants.

        The role is used for several purposes by the test infrastructure. First, the role can be used in the construction of object names in scripts, augmenting the name returned by getDescriptiveName(). The role is also used in the UI to decorate nodes in the map with icons that help users quickly associate the nodes with the roles they play in the system under test.

        Overrides:
        getRole in class FlexObjectProxy
        Returns:
        A brief type name that describes the role this object plays in the UI.
      • getChildAtPoint

        public java.lang.Object getChildAtPoint(java.awt.Point pt)
        Description copied from class: FlexObjectProxy
        Finds the child object that is at the specified point. Note that the point is relative to the top-left corner of the screen and not to the component itself or its parent.
        Specified by:
        getChildAtPoint in interface com.rational.test.ft.object.interfaces.IGraphical
        Overrides:
        getChildAtPoint in class FlexObjectProxy
        Parameters:
        pt - Screen-relative point to check
        Returns:
        The object at the point, or null if no child object is found
        See Also:
        FlexObjectProxy.getScreenRectangle()
      • getTestDataTypes

        public java.util.Hashtable getTestDataTypes()
        Returns a hashtable of data type descriptions of the verification point data available with the associated object. The hashtable keys are String objects that are used as the VP type in the associated test data. The type is a simple value that is different from other type values associated with this object under test. The type keys map to a verbose description of the test data, reasonable for presentation to a user.
        Overrides:
        getTestDataTypes in class FlexObjectProxy
        Returns:
        An hashtable of type/description pairs used to describe the verification data available from this proxy.
        Since:
        RFT1.0
        See Also:
        getTestData(String), ITestData
      • getTestData

        public com.rational.test.ft.vp.ITestData getTestData(java.lang.String type)
        Overrides:
        getTestData in class com.rational.test.ft.domain.ProxyTestObject
      • getDataDrivableCommand

        public com.rational.test.ft.sys.MethodSpecification getDataDrivableCommand()
        This method must be implemented by any proxy that wishes to support data driving. By default a null value is returned.
        Specified by:
        getDataDrivableCommand in interface com.rational.test.ft.domain.IDataDriven
        Overrides:
        getDataDrivableCommand in class FlexObjectProxy
        Since:
        RFT2.0
        See Also:
        ProxyTestObject.getDataDrivableCommands(int)
      • getMappableChildren

        public com.rational.test.ft.domain.ProxyTestObject[] getMappableChildren()
        Returns an array of proxies, visible by using the TestObject interface from a script, for the children of this object. This method is always used when building up the test objects to be added to a map, because a side additional recognition properties may be added to the child objects.
        Overrides:
        getMappableChildren in class FlexObjectProxy
        Returns:
        An array of child proxies of this proxy.
        Since:
        RFT1.0
      • getItems

        public java.lang.Object[] getItems()
      • getSelectedOptions

        public java.lang.String[] getSelectedOptions()
      • GetMethodSpec

        public com.rational.test.ft.sys.MethodSpecification GetMethodSpec(java.lang.String eventName,
                                                                          java.lang.String eventArgs)
        Overrides:
        GetMethodSpec in class FlexScrollControlBaseProxy
      • getActionArgs

        public java.util.Vector getActionArgs(java.lang.String methodName)
      • click

        public void click(com.rational.test.ft.script.Subitem opt)
      • click

        public void click(com.rational.test.ft.script.MouseModifiers modifiers,
                          com.rational.test.ft.script.Subitem opt)
      • inputKeys

        public void inputKeys(java.lang.String keyCode)
      • inputKeys

        public void inputKeys(java.lang.String keyCode,
                              com.rational.test.ft.script.Subitem opt)
      • isValidOption

        protected boolean isValidOption(java.lang.String option)
      • change

        public void change(java.lang.String text)