Solution
The TestStand API is hierarchical. Variables like RunState.Sequence.Main["MainSequence Callback"].Result.Status are valid only if your sequence uses that callback. For other sequences, the path changes.
RunState is the root object for runtime information during sequence execution.
The sequence status is typically found under:
-
- RunState.SequenceFailed (Boolean: True/False)
- Result.Status (String: Passed/Failed/Error)
However, the exact path to Result.Status depends on:
-
- Which sequence you are referencing (Main, callbacks, subsequences).
- Whether you are inside a process model or a client sequence file.