Action Unit in details
Documentation
Documentation
Action Unit is an action which performs a change when the test is running. There are seven types of predefined actions. All Action Units can be configured individually, and they all have a general config section. The general config includes Name and Description text fields and Enable switch. The rest of the config is unique per Action Unit.
Action Units run one at the time except Heartbeat. Heartbeat action is set once and run entire test or during defined number of seconds.
Name - keep it simple and short. It will appear in the test results.
Description - (optional) describe the test action. It hidden by default. Click more button in the name field to display it. The description won't appear in the test results.
Execution options - additional options on the action units.
Enabled/Disabled switch - if disabled the action will not be executed during the test. However it will appear in the test result as a disabled unit.
Criticality option lets setting an action on failure of the action unit. There are three options: non critical, set critical, and project critical. If Action Unit failed with non critical option (default option) then it continues the execution the following action units as normal. An Action Unit failure with set critical option interrupts execution of current Action Set and continues with the following one. A failure with project critical option terminates the test project execution completely. A corresponding message is being logged in the results and in Output Log.
1 [plus icon] - add more tags to config to set.
2 [bin icon] - remove tags from the config.
3 [SINT, INT, DINT or BIT N] - for SINT, INT or DINT datatypes values can be set by its bits.
Set Values action is designed to set values in tested PLC program.
Execution process:
1 [plus icon] - add more tags to config to set.
2 [bin icon] - remove tags from the config.
3 [SINT, INT, DINT or BIT N] - for SINT, INT or DINT datatypes values can be set by its bits.
Check Values action is designed to check values in tested PLC program.
Execution process:
1 [plus icon] - add more tags to config to set.
2 [bin icon] - remove tags from the config.
3 [SINT, INT, DINT or BIT N] - for SINT, INT or DINT datatypes values can be set by its bits.
Hold for, sec - determines how long before Toggle To value will be reset to the initial value.
Reset Values action is designed to set tag values in tested PLC program to defined value and reset them to previous values after defined time.
Used to emulate humans interaction, e.g. pressing buttons.
Execution process:
1 [plus icon] - add more tags to config to set.
2 [bin icon] - remove tags from the config.
Tag name datatype can be any datatype.
Each, sec - determines how long before To Value will be changed From value and vice versa.
Heartbeat action is designed to generate a pulsing tag in tested PLC program. The pulsing tag can be terminated after set number of seconds (Duration, s) or could be pulsing entire test if set to 0.
Execution process:
1 [plus icon] - add more tags to config to set.
2 [bin icon] - remove tags from the config.
Post execution parameters and Toggle Reset(s) are optional.
Unit Test action is designed to set values in selected tags and wait for expected result.
Execution process:
Test unit FAILs if:
Power Nap action is designed to pause the testing process for defined number of seconds.
Runner Log action is designed to log a message to test result output log during execution of Test Runner.