Command: Test Manager
Function: The command opens the Test Manager view. The view shows the contents of test repositories which have already been created. You can manage test repositories, but above all test scripts and their reports.
Call:
View: Test Manager
By default, the view is available as an additional tab next to POUs and Devices.
The connection to the test database is defined here and its contents are displayed and managed. The test scripts are stored and versioned in the database. They are displayed in the corresponding tree structure on the Test Scripts and Reports tabs.
Test Repository | When you select an existing test repository from the list box, its elements are displayed below the Test Scripts and Reports tabs. When you select Edit test repositories, a dialog with the same name opens for you to create a new repository or edit an existing one. By default, the test repository is a freely selectable directory in the file system which can be used as a location for test scripts and their test reports. You can configure any number of test repositories to be accessed by multiple users. |
Tab: Test Scripts
All test scripts are listed here below their test category. As long as they are not referenced by a test report in the test repository, they can be changed, deleted, or dragged to another location. If two instances of CODESYS are open, then you can also move test scripts to other repositories.
The context menu of the test scripts contains commands for managing the scripts.
Tip
A test script is displayed hierarchically in a folder structure in the Test Manager view. This corresponds to storage in the test repository. As a result, you need to specify its path when accessing the test script. The path contains the hierarchical folders, each separated by a period, and then the test script name.
Tab: Reports
The reports of the selected test repository are listed here below the Test Reports node. They are sorted by categories. Each test report has a unique name, which consists of the name of the executed test script and the execution time (date and time).
Information about the test script is displayed in the lower part of the split tab. The test report selected above is based on this information: Script name, Title, Version, Date, and Tester. A red message Unsaved test report indicates that the test report is not yet persistently stored in the test repository and will be deleted when you exit CODESYS.
Save Test Report: Available for test scripts in the Not saved category
Note: New test reports are always saved first in the Not saved category.
Save as HTML: Available when a test report is marked on the Reports tab
Consistency of test script and reports
Test scripts and reports reference each other. Therefore, they are stored consistently in the test repository.
A report which is stored in the test repository can be reproduced at any time if the corresponding test script is also in the test repository. For this reason, these test scripts cannot be edited or even removed from the database. The test scripts are read-only.
Tip
Never edit test repository files directly from a file manager. Edit and manage test scripts and reports in the Test Manager view only.