com.rational.test.ft.domain.flex

Class FlexTextAreaProxy

  • 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


    public class FlexTextAreaProxy
    extends FlexScrollControlBaseProxy
    • Constructor Detail

      • FlexTextAreaProxy

        public FlexTextAreaProxy(FlexTestDomainImplementation theDomain,
                                 com.rational.test.ft.domain.IChannel channel,
                                 java.lang.String theAutomationID)
    • Method Detail

      • getTestObjectClassName

        public java.lang.String getTestObjectClassName()
        Description copied from class: FlexObjectProxy
        Returns a valid class name specification. The test script (which runs in a separate process) interacts with a class that supports a shared interface with a specific proxy. This class is called a TestObject class. The testObject performs a cross-process (and cross-JVM) call to the same method against an associated proxy, which is this proxy.

        This method should never return null, even if shouldBeMapped() returns false. User may still access objects such as this through scripting method calls and can return references to them. If a null were returned, the marshalling code would be confused and would not be able to construct a test object.

        This method may be called from any thread.

        Specified by:
        getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBase
        Overrides:
        getTestObjectClassName in class FlexObjectProxy
        Returns:
        The associated testObject class full name.
      • 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.
      • getText

        public java.lang.String getText()
      • setText

        public void setText(java.lang.String text)
      • getSelectedText

        public java.lang.String getSelectedText()
      • getTestDataTypes

        public java.util.Hashtable getTestDataTypes()
        Description copied from class: FlexObjectProxy
        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.
        See Also:
        ProxyTestObject.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)
      • GetMethodSpec

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

        public com.rational.test.ft.domain.ProxyTestObject[] getChildren()
        Returns an array of proxies, visible by using the TestObject interface from a script, for the children of this object.
        Overrides:
        getChildren in class FlexObjectProxy
        Returns:
        An array of child proxies of this proxy.
        Since:
        RFT1.0
      • inputChars

        public void inputChars(java.lang.String text)
      • selectText

        public void selectText(java.awt.Point point)
      • inputKeys

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

        public void inputKeys(java.lang.String keyCode,
                              int keyModifier)
      • click

        public void click()
        Description copied from class: FlexObjectProxy
        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 com.rational.test.ft.object.interfaces.IGraphical
        Overrides:
        click in class FlexObjectProxy
      • click

        public void click(java.awt.Point pt)
        Description copied from class: FlexObjectProxy
        Performs a left-mouse click on the specified coordinates, relative to the associated TestObject. This method is a shortcut to the click method with a modifier parameter and coordinates. (The modifier is set to MOUSE_LEFT).
        Specified by:
        click in interface com.rational.test.ft.object.interfaces.IGraphical
        Overrides:
        click in class FlexObjectProxy