IBM Support What's New?

Warning Empty string String is empty after playback test case

Technote (troubleshooting)


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


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


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.

Sub Main
   Dim Result As Integer

   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

   Window SetContext, "Caption=Untitled - Notepad", ""

End Sub


The cause is unknown.


RQM 4.0.1

Resolving the problem

Open Robot before starting the test case.

If you run scripts sequentially, for example in a suite, update to Robot 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.

Document information

More support for: Rational Robot
Integrations: IBM

Software version:

Operating system(s): Windows

Reference #: 1649706

Modified date: 2013-09-12