NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I detect if a step was skipped?

Solved!
Go to solution

In a C-Sharp application, is there a way to detect if a step was skipped when the execution has completed?

 

ApplicationMgr.GetRunState() and ApplicationMgr.GetTerminationState() don't tell if the execution was complete (nothing skipped) or incomplete (1 or more steps skipped).

 

Do I need to walk through the steps and use the Step.GetRunModeEx() method?

0 Kudos
Message 1 of 4
(3,761 Views)
Solution
Accepted by topic author tlaford

Hi tlaford,

 

You will still need to check each step, but I believe that what you are trying to achieve would be better accomplished through the use of Step.ResultStatus:

 

ResultStatus Property

Syntax

Step.ResultStatus

Data Type

String

Purpose

Specifies the status string for the step.

Remarks

Although you can define custom status strings, this property is usually set to one of the StepProperties constants.

Ryan T
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,712 Views)

Can you explain a little more of what you are trying to achieve.

 

What is this C# application, a User Interface?

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 4
(3,697 Views)
Our application is a GUI wrapper around TestStand to hand hold the user through the selection of a test, installation of the proper equipment on the testing hardware, and execution of the test.  I was looking for a way to determine if a step was skipped once the test sequence has completed.  Based on what I have read, there isn't and I will need to look at each step's ResultStatus.
0 Kudos
Message 4 of 4
(3,689 Views)