How Can I Get The Number of Executed Steps in TestStand?

Updated Sep 5, 2019

Reported In

Software

  • TestStand

Issue Details

I need to get the number of executed steps in my main sequence.
How can I do it?

Solution

There is a variable that stores this number in TestStand: RunState.NumStepsExecuted.
By calling this variable in a statement, you will get the number of steps executed.

Additional Information

The RunState property object has several subproperties that store different information about a sequence or a step.
Please follow this link to learn more about these subproperties: RunState Subproperties