How Can I Programmatically Determine Which Execution Entry Point Has Been Selected?

Updated Apr 6, 2018

Reported In

Software

  • TestStand

Issue Details

I would like to programmatically determine which execution entry point of the current process model has been selected by the user. Where is this information stored and how can I access it programatically?
 

Solution

You can determine which execution entry point has been selected by using either of the following expressions inside a step:
  • RunState.Root.Sequence.Name
  • NameOf(RunState.Root.RunState.Sequence)

The first expression makes use of TestStand API, while the second uses operator NameOf() to return the name of the dynamic property RunState.Root.Sequence.

WAS THIS ARTICLE HELPFUL?

Not Helpful