Difference between revisions of "Extensions.StateVariable"
Jump to navigation
Jump to search
| Line 6: | Line 6: | ||
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. | 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.}} |
{{Note|NOTE — 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'''.}} | {{Note|NOTE — 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'''.}} | ||
Revision as of 08:43, 25 October 2018
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. |
![]()
NOTE — Changes of a state variable shall be immediately reported to the runtime environment.
Checker Rules
| StatVar_Chk001 | State variables shall not read |