NI TestStand

Showing results for 
Search instead for 
Did you mean: 

How do I get the name of the previous step in TestStand

I am trying to get the name of the previous step in TestStand. I keep running into the suggestion to use RunState.PreviousStep.Name() which seems so logical. However, in version 2013 I will be darned if I can even find this property in the expression browser.  It doesn't show during development mode or in run time.  I can find the previous step index, but not the name.  What the heck am I missing? Every time I have to try and deal with a TS property I lose hair and there isn't much left.

0 Kudos
Message 1 of 6

Name is a property, so you don't need the brackets.

I am not sure if TS 2013 already allows direct access to the name of the step like that. If not, you need PreviousStep.AsPropertyObject().Name.

CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 6


You can use as well NameOf(RunState.PreviousStep)

Message 3 of 6

Thanks. I'll give it a try.

0 Kudos
Message 4 of 6

Use Run State Property Methods where you can access all the properties related to the sequence currently executing.

Palanivel Thiruvenkadam,
CertifiedLabVIEWArchitect|| CertifiedTestStandDeveloper
Message 5 of 6

RunState.Sequence.Main["//Step name from Main Step Group"].Name

You can use above property to get name of any step

Kuddo welcomed
Message 6 of 6