Test client tab
In the Planning & control > ID Builder menu, under the Test client tab, the code definitions of the active configuration in the Configuration tab can be tested. The code definitions can be tested so that the generated codes are assigned correctly in Nexeed Industrial Application System. Codes for code definitions are returned during testing. If variables are defined for the code definition, the variables must be entered with values. If counters are required for the code definition, they must be created in the Counters tab.

Element/icon/column | Description |
---|---|
Selection of the data format |
Select data format: Form data If the Form data option is selected, the Code definition drop-down list and the Add variable button will appear. JSON If the JSON option is selected, an input field appears. The code definition and the variables can be entered in the JSON code format in the input field. |
Code definition |
Select code definition from the drop-down list. |
Execute |
Generate code. |
Input variables
If Add variable is selected in the Form data option, the Input variables input fields appear. If a Code definition that requires variables is selected in the Form data option, the Input variables input fields appear with the pre-filled keys of the variables. |
Element/icon/column | Description |
---|---|
Key |
Enter the name of the variable. |
Value |
Enter the value for the variable. |
Add variable |
Add another variable. |
Delete variable. |
|
Reset |
Remove all entered and selected entries. |
Test configuration with the form data option
The code definitions of the active configuration are displayed in the Code definition drop-down list. If a code definition is selected, the required variables for the code definition appear in the Input variables fields. If variables are defined for the code definition, values must be assigned for the variables.
Prerequisite
Expert
or Administrator
role
Procedure
-
Call up the Planning & control > ID Builder > Test client tab.
-
Select the Form data option.
-
Select Code definition from the drop-down list.
If variables are defined for the code definition, the Key and Value input fields appear for each variable.
The Key input field is pre-filled. The Value input field must be filled in. If no value is entered, an error message is output during testing.
-
Enter values for the keys.
-
To add further variables, select Add variable.
Another Key input field and another Value input field appear. * Enter Key and Value.
-
Test the code definition with Execute.
The generated code of the code definition appears.
Test configuration with the JSON option
If a Code definition is selected in the Form data option, the code definition and the variables are pre-filled in the JSON option. If variables are defined for the code definition, values must be assigned for the variables.
Prerequisite
Expert
or Administrator
role
Procedure
-
Call up the Planning & control > ID Builder > Test client tab.
-
Select the JSON option.
-
Enter the code definition in the codeDefinition line.
Example:
"codeDefinition": "CodePackage2",
-
Enter the keys and values of the variables in the variables array.
Example:
"variables": \{"InputVariable": "1","InputVariable2": "3"}
If the structure is not valid or the variables of the code definition are not entered, an error message is output during testing.
-
Test the code definition with Execute.
The generated code of the code definition appears.