07-11-2017 03:52 PM
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.
07-12-2017 02:04 AM
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.
07-12-2017 04:45 AM
Hello,
You can use as well NameOf(RunState.PreviousStep)
07-12-2017 12:22 PM
Thanks. I'll give it a try.
07-25-2017 12:06 AM
Use Run State Property Methods where you can access all the properties related to the sequence currently executing.
07-25-2017 03:28 AM
RunState.Sequence.Main["//Step name from Main Step Group"].Name
You can use above property to get name of any step