IBM Support

rtstsee.exe window from a batch file at execution time

Question & Answer


Question

An IBM® Rational® TestManager suite contains an IBM Rational Robot graphical user interface (GUI) script. This script starts a Microsoft® Windows® batch (.bat, .cmd). When you run the suite on a Master or an Agent computer, an rtstsee.exe window opens. How do you run the suite without an rtstsee.exe window?

Answer

Move the functions of the Windows batch to a Visual Basic Script (.vbs).

The following situation serves as an example.

You have the batch file C:\MyBatches\MyBatch.bat, that has the following line:


@Notepad.exe %RATL_RTHOME%\tssmetadata.xml


The batch opens the file tssmetadata.xml in Notepad. Your Robot script starts the batch with the Shell function:


Shell ("C:\MyBatches\MyBatch.bat")

When the TestManager suite runs, the rtstsee.exe window is visible. To run the Robot script functions without the rtstsee.exe window, you create a .vbs file C:\MyVBS\MyVBS.bat with the following code:


Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "Notepad.exe %RATL_RTHOME%\tssmetadata.xml", 1, true
Set WshShell = Nothing


In your Robot script you code:

    Shell "WScript.exe "C:\MyVBS\MyVBS.bat")

Notes
  • You can run the command in such a way that the .vbs script waits for the program to finish before the .vbs script continues. Consider the syntax of the Run method.

    WshShell.Run(strCommand, [intWindowStyle], [bWaitOnReturn])

    If you set bWaitOnReturn to true, script execution halts until the program finishes.
  • More information about the Run method is the Microsoft web page Run Method (Windows Script Host) .
[{"Product":{"code":"SSSHDX","label":"Rational Robot"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Scripting","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2003.06.00;2003.06.10;2003.06.12;2003.06.13;2003.06.14;2003.06.15;2003.06.16;7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.1;7.0.1.1;7.0.1.2;7.0.0.4;7.0.1.3;7.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSHVH","label":"Rational TestManager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Scripting","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2003.06.00; 2003.06.10; 2003.06.12; 2003.06.13; 2003.06.14; 2003.06.15; 2003.06.16; 7.0.0.1; 7.0.0.2; 7.0.0.3; 7.0.1.1; 7.0.1.2; 7.0.1; 7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
Rational Robot

Software version:
2003.06.00, 2003.06.10, 2003.06.12, 2003.06.13, 2003.06.14, 2003.06.15, 2003.06.16, 7.0, 7.0.0.1, 7.0.0.2, 7.0.0.3, 7.0.1, 7.0.1.1, 7.0.1.2, 7.0.0.4, 7.0.1.3, 7.0.2

Operating system(s):
Windows

Document number:
356355

Modified date:
16 June 2018

UID

swg21281420