NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Steptype of a step at runtime

Is it possible ( in TestStand 3.1) to get the steptype of a step during runtime? I want a add some specific handling a all steps of a steptype in the PostStepFaiureCallback .   
0 Kudos
Message 1 of 3
(2,988 Views)

Hi Markus,

Try

Step.StepType()

StepType.Name(), this will return the name of the steptype eg "PassFailTest" for a Pass/Fail Test step type.

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,986 Views)

You can also use the expression function TypeOf() to return the same information.  For instance, I made a message popup with the following expression as the message, and it displayed "MessagePopup"

TypeOf(Runstate.Step)

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 3 of 3
(2,971 Views)