NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Step That Caused UUT to Fail

Solved!
Go to solution

Hi,

Can anyone tell me if TestStand stores the step that caused the UUT to fail anywhere that is easy accessibly in the PostUUT loop?

Thanks & Regards,

Shane.

0 Kudos
Message 1 of 4
(3,452 Views)

Hi Don1,

 

You can't directly access the failed step in the PostUUT loop but what you can do is use the "SequenceFilePostStepFailure" callback, which gets called on every step failure. You can then save the Step in a fileglobal variable at that point and then subsequently access the variable from the PostUUTLoop callback.

Raj
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,424 Views)

Hi,

Thanks for the fast reply.

I have added "SequenceFilePostStepFailure" but I am not exactly sure where to grab the name of the failing step from once inside this sequence.

Is it somewhere in RunState?

 

Thanks,

Shane.

0 Kudos
Message 3 of 4
(3,416 Views)
Solution
Accepted by topic author ShaneDonn

Hi Shane,

 

It's under Parameters.Step.Name inside the SequenceFailPostStepFailure callback.

Raj
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,414 Views)