|Short Description||Provides different status information to the environment|
|Specified by||ISO 13209-3|
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.|
For technical reasons, state:StateVariableDeclaration is defined as a sub type of otx:ContextVariableDeclaration. Regardless, state variables are not context variables. Statements about context variables do not automatically apply to state variables.
|StatVar_Chk001||State variables shall not read|