Accessing the Sequence Context
- Updated2025-07-23
- 1 minute(s) read
In expressions, you can access the value of a variable or property by specifying a path from the sequence context to the particular variable or property. For example, you can specify the status of a step using the following expression:Step.Result.Status = "Passed"
During an execution, you can view and modify the values of the properties in the sequence context from the Variables pane in the Execution window. The Variables pane displays the sequence context for the sequence invocation currently selected on the Call Stack pane. You can also monitor individual variables or properties from the Watch View pane.
You can pass a reference to a SequenceContext object to a code module. In code modules, you access the value of a variable or property by using PropertyObject methods in the TestStand API with the sequence context. As with expressions, you must specify a path from the sequence context to the particular property or variable.
Select View»Sequence File»Variables or View»Execution»Variables in the TestStand Sequence Editor to display the Variables pane, which contains the names of variables, properties, and sequence parameters you can access from expressions and code modules.