Data Agent
Purpose
The Data Agent manages reading and writing of input/output values stored in memory during test execution. It is primarily used for data-driven testing, enabling separation of test logic and test data.
Data Agent Blocks
1. Read Parameter
Reads a parameter value from the ETD file using the specified Data ID.
Properties
Inputs
Parameter Name |
Description |
|---|---|
Data ID |
Identifier of the parameter to be read from the ETD file |
Outputs
Output Code |
Description |
|---|---|
0 |
Read data successfully |
1 |
Unable to read data |
Output Possibilities Configuration
2. Read Real Data
Reads a real (floating-point) value associated with the specified Data ID.
Properties
Inputs
Parameter Name |
Description |
|---|---|
Data ID |
Identifier of the real value to be read |
Outputs
Output Code |
Description |
|---|---|
0 |
Read data |
1 |
Unable to read data |
Output Possibilities Configuration
3. Read Boolean Data
Reads a Boolean value associated with the specified Data ID.
Properties
Inputs
Parameter Name |
Description |
|---|---|
Data ID |
Identifier of the Boolean value to be read |
Outputs
Output Code |
Description |
|---|---|
0 |
Read data |
1 |
Unable to read data |
Output Possibilities Configuration
4. Write Real Data
Writes a real (floating-point) value to the specified Data ID in memory.
Properties
Inputs
Parameter Name |
Description |
|---|---|
Data ID |
Identifier to which the real value is written |
Input Value |
Real (floating-point) value to be written |
Outputs
Output Code |
Description |
|---|---|
0 |
Data written |
-1 |
Write operation failed |
Output Possibilities Configuration
5. Write Boolean Data
Writes a Boolean value to the specified Data ID in memory.
Properties
Inputs
Parameter Name |
Description |
|---|---|
Data ID |
Identifier to which the boolean value is written |
Input Value |
Boolean value to be written |
Outputs
Output Code |
Description |
|---|---|
0 |
Data written |
1 |
Write operation failed |
Output Possibilities Configuration
6. Read Constant
Generates a fixed constant value that can be reused in subsequent test steps.
Properties
Inputs
Parameter Name |
Description |
|---|---|
Constant Value |
Fixed value generated by the block |
Outputs
Output Code |
Description |
|---|---|
0 |
Read data |
1 |
Unable to read data |