Troubleshooting
Problem
This technote describes the steps a user must follow to copy an IBM Rational Robot® GUI script from one project to another, existing project.
Resolving The Problem
To copy a GUI script from one project (the "source project") to a second project (the "target project"):
- Start Robot and login to the target project
- Select File > New > Script
- Type the name of the script to be copied
- Make sure the 'GUI' radio button is selected
- Click OK. An empty script should appear; close it.
- Repeat Steps 2a - 2c for each script to be copied
- Use the Microsoft® Windows® Explorer to browse to the source project's TestDatastore\DefaultTestScriptDatastore\TMS_Scripts directory
- Copy the ScriptName.rec file from the TMS_Scripts folder of the original project to the TMS_scripts folder of the target project.
Select 'Yes' when asked if you want to overwrite the ScriptName.rec file in the TMS_Scripts folder of the target project.
DO NOT COPY the ScriptName.Script.rtxml file - Copy any related script files.
- Verification Points (if any) - Copy the ScriptName.VPName.* files from the TMS_Scripts\vp folder of the source project to the TMS_Scripts\vp folder of the target project
- Low-level recording (if any) - Copy the ScriptName.*.lls files from the TMS_Scripts\lls folder of the source project to the TMS_Scripts\lls folder of the target project
- References to header or library files (if any) - Copy the HeaderName.sbh and LibraryName.sbl files from the TMS_Scripts\SQABas32 folder of the source project to the TMS_Scripts\SQABas32 folder of the target project
- References to dll files (if any) - Copy the dll file from the TMS_Scripts\dll folder of the source project to the TMS_Scripts\dll folder of the target project
- If the contents of the guiobj.dat file in the TMS_Scripts\dat folder of the source project is not empty, copy its contents to the guiobj.dat file of the target project.
- Open the script in Robot and compile it.
Step 2 must be done individually for each script. Steps 4 & 5 can be done for many scripts simultaneously because they only involve manually copying files.
[{"Product":{"code":"SSSHDX","label":"Rational Robot"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Scripting","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2002.05.20;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.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Historical Number
25350
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21142661