![]() |
T-Plan Robot Enterprise 4.0.2 Doc Collection GUI Reference |
10/06/15 |
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) |
||
|
schedules |
Folder for schedule files (since v4.0) |
||
|
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.Version 4.0 and higher:
Omit any path settings in the script. The template path will default to the project one.The output path will default to the unique project output folder to ensure that repeated executions of the same script will store the results to different locations (no result overwriting). It also makes the Test Results branch of the Project View to organize the test results in a hierarchical way by the test script names and dates.
Version 3.x:
The template and output paths in v3 default to the user home folder and must be configured manually. Set the template path to the project one. Set the output path to the unique project output folder to ensure that repeated executions of the same script will store the results to different locations (no result overwriting). It also makes the Test Results branch of the Project View to organize the test results in a hierarchical way by the test script names and dates. This is the default setting which gets applied to any new script:
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"));
Set the template path to the project one. Set the output path to a static folder located under the project report home. This will make the script overwrite the test results with each execution. Such a path will be also well recognized by the Project View:
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"));
For v4.0 and higher you may omit the template path setting because it will default to the project template directory.
<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). |