T-Plan Robot Enterprise
3.3 Doc
Collection GUI Reference |
08/01/13 |
Contents
|
<path>\MyAutomation |
|
Project MyAutomation home (the project folder
name serves as the project name). |
|
|
classes |
Folder for compiled Java classes (*.class files) |
||
|
reports |
Folder for test reports (results) |
||
|
src |
Folder for Java test scripts and other Java source code
(*.java) |
||
|
templates |
Folder for template image files and collections |
||
|
tpr |
Folder for TPR test scripts (*.tpr) |
||
tprproject.xml |
The T-Plan Robot Enterprise project
descriptor. |
Project
folders
are
designed
to
be
self
contained. It can be moved, copied and renamed safely as long as
the scripts do not refer through a relative path to other resources
located outside of this
folder. Such references must be naturally fixed after
any change of the project name or location.Script Format |
Path Setting Command |
TPR |
Var _REPORT_DIR="{_PROJECT_REPORT_UNIQUE_DIR}" Var
_TEMPLATE_DIR="{_PROJECT_TEMPLATE_DIR}" |
Java |
setOutputDir(getVariableAsString("_PROJECT_REPORT_UNIQUE_DIR")); setTemplateDir(getVariableAsString("_PROJECT_TEMPLATE_DIR"));
|
Script Format |
Path Setting Command |
TPR |
Var _REPORT_DIR="{_PROJECT_REPORT_DIR}\mytestscript" Var
_TEMPLATE_DIR="{_PROJECT_TEMPLATE_DIR}" |
Java |
setOutputDir(getVariableAsString("_PROJECT_REPORT_DIR")+java.io.File.separator+ "mytestscript" ); setTemplateDir(getVariableAsString("_PROJECT_TEMPLATE_DIR"));
|
<project_home>/templates
folder. This
doesn't apply to the images that your scripts reference by a full
(absolute) file path.
If you want to see such images in the Project View move them to the
project template folder and update your scripts to reference them by a
relative path (name).<project_home>/tpr
folder.<project_home>/src
folder._PROJECT_DIR
variable. For example, to open an Excel resource mydata.xls located in
the project home folder call:TPR Format: | Excel "open" file="{_PROJECT_DIR}\mydata.xls" |
Java Format: | excelOpen( new
File(getVariableAsString("_PROJECT_DIR"),
"mydata.xls"),
(String)
null
); |
tpr/
(shown as "TPR Test Scripts")
and src/
("Java Test
Scripts").
Double clicking a test script node will open it in the Script Editor.Report
Icon |
Folder Icon |
Status |
Execution
in progress. |
||
Successfully completed (the script returned the exit code of 0). | ||
Failed (the
script was either stopped or produced an exit code > 0). |
||
Invalid
report (unknown or corrupted format) |
||
No
XML
report available (the folder contains just the execution log and/or
a report in the HTML format). |