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

Project Version 2.3

com.rational.test.ft.object.interfaces
Interface IText

All Known Implementing Classes:
SAPGuiCtrlTextEditTestObject, SAPGuiTextTestObject, TextGuiSubitemTestObject, TextGuiTestObject, TextScrollTestObject, TextSelectGuiSubitemTestObject, WpfSelectGuiSubitemTestObject, WpfTextGuiSubitemTestObject, WpfTextSelectGuiSubitemTestObject

public interface IText

Exposes methods that are explicitly associated with a text type control. These methods allow for direct access to the text on the TestObject.

Since:
RFT 6.1.1.1

Method Summary
 java.lang.String getText()
          Allows direct access to the text property on the control.
 void setText(java.lang.String text)
          Directly modifies the text on the control.
 

Method Detail

getText

java.lang.String getText()
Allows direct access to the text property on the control.

Returns:
java.lang.String - this will give you the text value associated with the text property of the component if exists otherwise null
Detail description:
This will give the text property of the control
Example:

quantityText().getText();
Here quantityText is of type TextGuiSubitemTestObject and i have used the ClassicjavaA as Application under test.
Since:
RFT 6.1.1.1

setText

void setText(java.lang.String text)
Directly modifies the text on the control.

Parameters:
text - The text to update the property text of the component
Detail description:
This will set the text property value of the control. Any existing text in the control is replaced with the specified text value. This command attempts to playback this action from the glass when possible.
Example:

quantityText().setText(new String("2");
Here quantityText is of type TextGuiSubitemTestObject and i have used the ClassicjavaA as Application under test.
Since:
RFT 6.1.1.1