General Settings
The general settings are the minimum settings you must specify in order to run a test.
Directory
The data storage is the place where the data concerning the test execution is gathered. By default, the directory is set to:
${tpt.tptfile.dir}\testdata\${tpt.execconfigname.filename}
Thus a folder named testdata
is created next to your TPT project file. And inside the testdata
folder, a folder with the name of your execution configuration is created. You can either use ${tpt.execconfigname.filename}
or ${tpt.execconfigname}
. Both variables are replaced by the name of the execution configuration. When using one of these variables in path names, the execution configuration name must be unique, otherwise the content will be overwritten. The difference between both variables is explained in Predefined execution configuration variables.
TPT can add up to two new sub-folders to the data directory. Thus, you can add a path like mypath\new_folder_A\new_folder_B
where new_folder_A
and new_folder_B
do not exist yet in your data directory. The folders are created when you execute the tests.
${tpt.matlab.modelfile.original}
cannot be accessed in this field. A single execution configuration might represent multiple platforms, so this could lead to a conflict.In case there are files in the data directory specified in Directory, this content will be overwritten if the automatically by TPT generated file names are identical. Use (trash bin) to delete the content of the data directory before the test execution. The trash bin icon is dimmed when the directory is empty.
You run test case TC_A and TC_B on Monday, and run TC_A and TC_C on Tuesday without using Delete the content of the data directory, the data of TC_A is overwritten, while the data of TC_B is kept and the data of TC_C is added. When you run TC_A and TC_C on Tuesday and use Delete the content of the data directory, the folder is emptied and finally only the data of TC_A and TC_C are inside the data directory. |
Click the Advanced link to go to the Test Execution Configuration - Storage tab to specify the directory layout and select a reference directory.
Report
In the Report sectionof the Execution Configuration dialog, you can select the format and the report directory.
Format
HTML
Renders report as standard webpage is generated for each test case. This report format can be displayed inside TPT in the Report view, see Views - Report.
HTML (embedded resources)
The same as the HTMLformat but the images, JavaScript and CSS used in the test report are added to HTML files. Thus, the number of created folders and files is reduced. This report format can be displayed inside TPT in the Report view, see Views - Report.
Renders the report as PDF file that contains the report overview and an additional PDF file for each test case.
PDF (all test reports in one file)
Renders the report as PDF file that contains the report overview and the report of all test cases in a single file.
Report directory
The report is stored by default in the test data directory. You can specify a different directory. Thus a folder named report
is created next to your TPT project file. And inside the report
folder, a folder with the name of your execution configuration is created. When you enter no path at all, the report is generated in the test data folder. When using ${tpt.execconfigname.filename}
or ${tpt.execconfigname}
to specify the report directory, the execution configuration item names must be unique, see Directory.
TPT can add up to two new sub-folders to the report directory. Thus, you can add a path like mypath\new_folder_A\new_folder_B
where new_folder_A
and new_folder_B
do not exist yet in your directory. The folders are created when you execute the tests.
C:\Users\admin\Desktop\my_test.pdf
. Nevertheless, if you specify a file name for the other types of report, a warning indicates that the file name must be removed, in order to leave just the path to the report directory.Use (trash bin) to delete the content of the report directory. The trash bin icon is dimmed when the directory is empty.
In the Execution section, select a platform configuration, a test set, a parameter set (optional), and set environment variables (optional).
For each execution configuration, you can specify if the assesslets applied to the test cases should be executed or not. You can also open the Platform Configuration dialog from within the Execution Configuration dialog by clicking Open platform configuration to set up new platforms or edit existing platforms.
To create and edit test sets, click Open test set definition, see Test Sets. At least one execution item needs to be specified to execute tests. Setting up an execution item can be done in two ways using the normal mode or using the advanced mode. The default setting is the normal mode. To switch to the advanced mode, click the button next to Normal mode.
Normal mode
Cancel when <number> tests failed
Define the number of failed tests that cause the execution to cancel all subsequent pending test cases automatically. Select a value in the range 1-100000.
Platform
The platform upon which the tests are executed, for example dSPACE XiL Platform, MATLAB/Simulink Platform, or ASCET Platform. Click Open platform configuration to edit the platform.
Test Set
Select Selected test cases to execute test cases selected in the Project view.
Select a test set specified in the Test Set Definition dialog, see Test Sets. Click Open test set definition to open the Test Set Definition dialog and to create additional test sets.
Parameter Set
Optionally select a parameter set for the execution. This can be a TPTAIF, DCM, or CDF file. To use a CDF file, the plug-in cdfsupport must be loaded. For more information about importing DCM files, see Import DCM.
Variables
Optionally configure special execution configuration variables for the test execution item. These variables can be used in the Script assesslet and in a Test Set Definition condition, see Test Sets using Conditional Expressions. Click Edit the variables available for execution to open the dialog to configure the variables. The execution configuration item variables are displayed in the report in the table Platform Information. More about environment variables, see Environment Variables.
Select a source that contains reference signals to be used for back-to-back tests where the results of two different platforms are to be compared.
<None>
No back-to-back tests are performed.
Reference directory
Select this option to execute back-to-back comparisons against previously executed test results that have been stored in a Reference directory, see Test Execution Configuration - Storage.
Reference file
Select this option to execute back-to-back comparisons against signal data stored in a reference file. TPT supports the CSV, TPTBIN, XLSX, XLS, MAT, MF4, MDF, DAT file format.
<reference platform>
Select this option to execute back-to-back comparisons against execution results from another execution items of this execution configuration or another platforms.
Click Set up comparison behavior to open the Back-to-Back Settings section to set up the back-to-back test, see Back-to-Back Settings.
Advanced mode
In the advanced mode, you can set up several configuration items for a single execution configuration and individually activate or deactivate those items. You can also deactivate or activate the assessment of an individual execution configuration.
creates another execution configuration item | |
deletes the selected execution configuration item | |
moves the selected item up | |
moves the selected item down | |
activates an execution configuration item | |
deactivatea an execution configuration item | |
opens the Configure Execution Item dialog for the selected execution configuration item; you can do the same settings here as in the table, but the back-to-back specification can only be done in the table. |
Cancel when <number> tests failed
See normal mode.
Platform configuration
Same as Platform in the normal mode.
Test set
See normal mode.
Variables
See normal mode.
Assess
You can deactivate the assessment for a single execution configuration item to run the assessment only on specific parts of the test execution. Since the assessment is a very time consuming part of the test execution this may save a lot of time if the assessment is not needed for all parts of the test execution. Deselect this checkbox to deactivate the assessment for a single execution configuration item. If deselected, no test case reports are created and no information for this execution configuration will be shown in the overview report.
Instead a paragraph is added to the overview report, for example: 'Default Configuration - Stand-alone Platform' was executed with 3 testcases, but not assessed. They will not be reported.
Back-to-Back
See normal mode.
Deactivate and active execution configuration items
When you have specified more than one platform configuration item, all of them are executed from top to bottom the moment you click Run. To prevent platform configurations items from being used, select the platform configuration items you do not want to use, and click Deactivate execution item.
Deactivated execution configuration items are dimmed. To activate a deactivated platform configuration item, click Activate execution item.
Execution options
By selecting (multiple selection is possible) of the checkboxes Execute, Dashboard, Assess, and the Report in the Execution Configuration dialog, you can activate specific functions, see Test Execution Configuration - Execution Options.