Skip to main content

Element: Test Script

Function: The element manages the metadata of the corresponding test script. The element is always located at the top position in the test script.

Call: Test Script element in the test script editor

Tab: Test Script

Changes that you make to the settings on the tab are saved only temporarily.

Name

Path (folder structure and name) of the test script in the test repository to uniquely identify the test script

The path contains the hierarchical folders, each separated by a period, and then the test script name.

Example: Examples.Counter_ApplicationTest

Tip: If you change the path and then select Save or Save + Run, then a prompt is displayed. With Rename the test script, the test script is saved under the changed path and the original test script is deleted. With Copy the test script, the original test script is retained.

Version

Version number of the test script in the test repository

Example: 4.1.2.3

Tip: To create a new version of the test script, specify the new version, click _tm_icon_save.png or _tm_icon_run.png, and select Copy the test script in the prompt.

Author

(optional) Author of the test script

Title

(optional) Title of the test script

Description

(optional) Comment, for example to describe the test run

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.

Tip

Changes in the test script editor are stored for the following actions:

  • _tm_icon_save.png button: Saves the test script

  • _tm_icon_run.png button: Saves and starts the test script

  • _tm_icon_debug_run_continue.png button: Saves and starts troubleshooting in the test script (debug mode)

The File → Save Project menu command saves only the open CODESYS project, not the test script.