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.
Dim Result As Integer
Window SetContext, "Caption=Untitled - Notepad", ""
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.
The cause is unknown.
Resolving the problem
Open Robot before starting the test case.
If you run scripts sequentially, for example in a suite, update to Robot 184.108.40.206 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.