OTX Reference  
OpenTestSystem.Otx.Extensions.StateVariable.Declarations.StateVariableDeclaration Class Reference

Declares a State variable More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.StateVariable.Declarations.StateVariableDeclaration:
Inheritance graph

Additional Inherited Members

- Public Attributes inherited from OpenTestSystem.Otx.Core.Declarations.ContextVariableDeclaration
Visibility visibility
 Visibility for access from outside the document More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Declarations.Declaration
DeclarationRealisation realisation
 For declarations at specification stage, having a name for the declaration is sufficient. For realisation stage, the declaration needs a data type assignment. The optional realisation element is used for exactly this task – it contains a dataType sub element. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.UniversalTypes.NamedAndSpecified
ExtensibleData[] extendedData
 Declares general data for NamedAndSpecified which can be extented by new general data defined in new OTX extensions using the standardised extension mechanism. For example it can be used to specify specification relevant content in a better structured way. More...
 
OtxId id
 Unique identifier of an element More...
 
MetaData metaData
 Additional tool-specific data More...
 
OtxName name
 Name of an element More...
 
System.String specification
 Descriptive specification More...
 

Detailed Description

Declares a State variable

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. Status 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 Status variable.

Associated checker rules:
CheckerRule.StateVariable_Chk001 - Write-only state variables