Warning Empty string String is empty after playback test case

Technote (troubleshooting)


Problem(Abstract)

The playback of an IBM Rational Quality Manager (RQM) test case with IBM Rational Robot script implementation results in an unexpected active window (UAW).

Symptom

The following script results in the warning. The Notepad window has a grey caption bar.

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.


[<code>]
Sub Main
   Dim Result As Integer

   StartApplication("notepad")
   DelayFor(2000)
   Window SetContext, "Caption=Untitled - Notepad", ""
 
End Sub


However, when you opened Robot before you start the test case, you get expected results.

The following script runs without error in a test case, while Robot is closed before you start the test case.


Sub Main
   Dim Result As Integer

   StartApplication("notepad")
   Window SetContext, "Caption=Untitled - Notepad", ""
   InputKeys("abc")    

End Sub


Cause

The cause is unknown.

Environment

Robot 7.0.3.9
RQM 4.0.1

Resolving the problem

Open Robot before starting the test case.

Note:
If you run scripts sequentially, for example in a suite, update to Robot 7.0.3.9 iFix03 or newer. These newer versions keep Robot open after the playback completes. Then the next script will playback error free too. You only need to open Robot once.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Robot
Integrations: IBM

Software version:

7.0.3.9

Operating system(s):

Windows

Reference #:

1649706

Modified date:

2013-09-12

Translate my page

Machine Translation

Content navigation