Extensions.StateVariable
Jump to navigation
Jump to search
Classification
Name | StateVariable |
Short Description | Provides different status information to the environment |
Class | OTX Extension |
Base Extension | - |
Pre-Conditions | - |
Specified by | ISO 13209-3 |
Introduction
Test sequences require a technique to provide different status information to the environment, e.g. progress of execution or currently selected ECU etc. This is the intension of state variables. State variables are the counter part of context variables. It's the mechanism to transport status information from inside a sequence to the environment, while context variables are the mechanism to transport environment information to the sequence.
Important: State variables can only be set and cannot read inside OTX. In other words: The test logic shall not be based on the value of a State variable. |
Important: OTX documents declaring state variables should be connected to corresponding setting routines which can set the current value of the status in scope. |
Changes of a state variable shall be immediately reported to the runtime environment.
Checker Rules
StatVar_Chk001 | State variables shall not read |