Troubleshooting
Problem
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.
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.
|
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.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21649706