Running a script playback from RFT results in a blank textbox

Technote (troubleshooting)


Problem(Abstract)

Attempts to playback the recorded script from IBM Rational Functional Tester results in a blank textbox on the application under test

Symptom

During playback setText() and inputchars() when used for a textbox, fails to input characters into the textbox.

Example code:

<<object>>.setText() and <<object>>.inputchars()


Cause

This issue was identified as a product defect under RFT v8.3


Resolving the problem

WORKAROUND:

Use the below sample code instead of using

<<object>>.setText() or <<object>>.inputchars():

Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


Sample Code


public void testMain(Object[] args)
   {
       for(int i = 0; i < 4; i++)
       {
       <<Object>>.click(atPoint(49,12));
       getScreen().inputChars("username");
       <<Object>>.click(atPoint(41,17));
       getScreen().inputChars("username");
       }
   }

Document information


More support for:

Rational Functional Tester
Playback

Software version:

8.3, 8.3.0.1

Operating system(s):

Windows

Reference #:

1636402

Modified date:

2015-08-13

Translate my page

Content navigation