Skip to main content

Action: SetProjectInformation

Function: The action sets the project information of the open project.

Call: Projects test driver

Tab: Configuration

Tip

The input fields of this tab correspond to the fields of the Project Information object of CODESYS. For detailed descriptions, see the chapter Object: Project Information in the CODESYS help.

Table 68. Properties

Company

Name of the company

Example: Company_A

_cds_icon_option_deactivated.png: The value in the Company field is not applied to the Project Information object.

standard icon: The value in the Company field is applied to the Project Information object when the action is executed.

Used for identifying a library

Title

Title of the project

Example: Test_Project1

_cds_icon_option_deactivated.png: The value in the Title field is not applied to the Project Information object.

standard icon: The value in the Title field is applied to the Project Information object when the action is executed.

Used for identifying a library

Version

Version of the project

Example: 1.0.0.1

_cds_icon_option_deactivated.png: The value in the Version field is not applied to the Project Information object.

standard icon: The Version field is applied to the Project Information object when the action is executed.

Used for identifying a library

Released

This option opens the project before changes.

When you edit the project, a dialog prompt opens to confirm whether or not you really want to change the project. If you reply to this prompt one time by clicking "Yes", then no more prompts will appear for more editing actions.

standard icon: The option in the Project Information object is enabled.

_cds_icon_option_deactivated.png: The option in the Project Information object is disabled.

_tm_icon_option_blue.png: The set option in the Project Information object is not changed.

Categories

standard icon: The value in the Categories field is applied to the Project Information object when the action is executed.

_cds_icon_option_deactivated.png: The value in the Categories field is not applied to the Project Information object.

_cds_icon_three_dots.png: Opens a dialog for applying the category from a description file or library

Default namespace

standard icon: The value in the Default namespace field is applied to the Project Information object when the action is executed.

_cds_icon_option_deactivated.png: The value in the Default namespace field is not applied to the Project Information object.

Author

Author of the project

standard icon: The value in the Author field is applied to the Project Information object when the action is executed.

_cds_icon_option_deactivated.png: The value in the Author field is not applied to the Project Information object.

Description

standard icon: The Description field is applied to the Project Information object when the action is executed.

_cds_icon_option_deactivated.png: The value in the Description field is not applied to the Project Information object.

Automatically generate POUs for property access

This option corresponds to the "Automatically generate 'Project Information' POUs" option in the Project Information object of CODESYS.

standard icon: The option in the Project Information object is enabled.

_cds_icon_option_deactivated.png: The option in the Project Information object is disabled.

_tm_icon_option_blue.png: The set option in the Project Information object is not changed.



Tab: Parameters

The parameters defined on the Parameters tab are used to exchange values between test script variables and parameters of test actions. Parameters can be used as placeholders on the Configuration tab. For this, the name of the parameter is set in braces in the configuration dialog. Example: {name}.

Tip

Variables defined globally in the script (with the prefix $GLOBALS.) can be used directly in the test action. It is not necessary to use input parameters for passing. Using output parameters is necessary for writing global variables.

Input parameters: When executing the test action, the values of the test script variables are passed to the input parameters of the test action and can be used in the configuration of the test action.

Output parameters: When executing the test action, the values of the output parameters of the test action are passed to the test script variables and can be used (for example, in other test actions).

Name

Name of the input/output parameter

This name is defined in addition to the variable name to identify the origin of the parameter when it is passed to another script. During the test run, this name is displayed as the Outer name on the Variables (scope #<n>) tab in the Test progress window.

Background: When a script A calls another script B, and its variable x passes y as a parameter to the script B, then the parameter y is the variable y from the point of view of script B.

To see that this variable is recognized as variable x "outside" of script B, there is the Name column ("Outer name"). The variable y has the name x in the scope pf script B because it has been passed as variable x to the parameter y in the scope of the calling script A.

Variable

Name of the test script variable

Example: TS_CaseA_Result

Move Up

Moves the selected variable one line up

Move Down

Moves the selected variable one line down

Remove

Removes the selected variable from the list