Which Variable Contains the TestStand Sequence Status?

Updated Nov 12, 2025

Reported In

Software

  • TestStand

Issue Details

In TestStand, the sequence status is not stored in a single variable. It varies depending on the execution context, sequence structure, and process model. To locate the correct status, you must understand the TestStand API hierarchy. 
 

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.

Additional Information

Instead of memorizing one expression, refer to the TestStand API Reference and Expression Browser to navigate the hierarchy: