background image
<< Example Script | Chapter 4 - Creating Verification Points in GUI Scripts >>
<< Example Script | Chapter 4 - Creating Verification Points in GUI Scripts >>

The Template File

Customizing SQABasic Scripts
3-19
Example Header File (Tstheader.sbh)
Run this example with the example script and library files:
Global userInput as Integer
Global Const NMBR as Variant
= 10
Declare Sub compareNumbers BasicLib "tstLibrary" (arg1 as Integer,
arg2 as Variant)
The Template File
Robot provides a template file, Testproc.tpl, that you can use to automatically add
comments or include statements in new GUI scripts. Any text that you add to
Testproc.tpl automatically appears in each newly recorded script.
To edit Testproc.tpl:
1. Click File > Open > SQABasic File.
2. Set the file type to Template Files (*.tpl).
3. Select testproc.tpl and click Open.
4. Type include statements, as in the following example:
'Include global declarations in all scripts
'$Include "global.sbh"
The
$Include
metacommand begins with a single quotation mark ( ' ).
Although this normally indicates a comment, when followed by a dollar sign ($)
it indicates a special SQABasic command.
5. Click File
>
Save.