background image
<< Viewing Session Properties | How to Define Script Properties in Robot >>
<< Viewing Session Properties | How to Define Script Properties in Robot >>
Creating Library Files for VU Scripts
Coding a Script Manually
5. Select the script whose properties you want to view or modify.
6. Click Properties. The Script Properties dialog box appears.
7. When you have finished viewing and editing properties, click OK to save any
changes in the Script Properties dialog box, or click Cancel.
8. Click Cancel to close the Session Properties dialog box.
9. In the Regenerate Test Scripts from Session dialog box, click Cancel.
Coding a Script Manually
The fastest and easiest way to generate a script is to record a session with Robot and
generate the script automatically.
However, you can open an empty script and add code to it--for example, if you are
hand-coding the script or if you are copying code from another script.
To open an empty script and add code to it:
1. In Robot, click File
Test Script, then choose the type of script to create.
2. Type a script name and, optionally, a description of the script.
3. Click OK. Robot creates an empty script with the appropriate scripting language
4. Add the code to the script.
Creating Library Files for VU Scripts
Scripting language libraries are packaged in DLLs. You create dynamic link library
(DLL) files using a development tool such as Microsoft Visual Studio. For
information about making the DLLs that you create available to VU scripts, see the
VU Language Reference.
Defining Script Properties
A script can have properties associated with it in addition to the script name.
Examples of script properties include a description of the script, the purpose of the
script, and any test requirements associated with the script.
Defining script properties is an important part of the test planning process. For that
reason, you typically define a script's properties in TestManager before you record
the script. But you can also define a script's properties after you record the script, as
described in the following section.