T-Plan Robot Enterprise
3.0.1 Doc
Collection GUI Reference |
20/07/12 |
RobotCodeTemplates.properties
and
saved to the user home folder. The file can be then copied to another
environment and imported using the Import
button in the Code Template Editor
window. This system is intended to support situations where one person
creates code templates for the whole team or company to enforce a
certain process and/or format.Parameter |
Description |
${dot} |
Marks
the position where to put the dot (caret) in the script editor after
the template code is inserted. When used together with ${mark}
it defines the end of text selection. To insert this mark you may
optionally use the Mark caret
button below the editor. |
${mark}
|
Marks
beginning of the text to select (highlight) in the script editor after
the template code is inserted. It must be used in combination with ${dot} .
To
insert
this
mark you may optionally use the Mark
selection button below the
editor.Text selection may be optionally used to select a value or an expression which is expected to be rewritten right after the template insertion into the test script. |
${var<N>:name1;..;nameM}
${var<N>} |
Marks
a place where to create a unique variable name. The <N>
expression must be the variable ordinary number starting from 1, for
example var1 , var2 , etc. The first mark of
the N-th variable must contain the colon (:) followed by the semicolon
separated list of one or more preferred variable names. This mark allows the template to specify that it needs to create one or more unique variables in a way that doesn't conflict with the existing test script code. When the template is being inserted into a script the framework retrieves the list of variables it uses and populates the template with a unique variable name which is not yet used. The preferred variable names serve as a prefix and they are suffixed with an ordinary number if needed. For example consider a simple template which creates a for() statement looping from 1 to 10: for (${var1:i}=0;
{${var1}}<10; ${var1}={${var1}}+1) { } for (i2=0; {i2}<10;
i2={i2}+1) { } |