NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Setup failure not recorded in Execution.ResultStatus

If a step fails during the Setup section of my sequence, the result visible in a VB.NET event handler is "Passed", rather than the expected "Failed" or "Error".

Private Sub ExecutionTwoFinished(ByVal sender As Object, ByVal e As NationalInstruments.TestStand.Interop.UI.Ax._ExecutionViewMgrEvents_EndExecutionEvent) Handles axExecutionViewMgrTwo.EndExecution
If e.exec.ResultStatus = StepProperties.ResultStatus_Passed Then

...

End If
End Sub

I have "Step Failure Causes Sequence Failure" selected.

Is there a setting which I am missing to cause the failure to be reported correctly?

Thanks!
0 Kudos
Message 1 of 2
(2,958 Views)
Hello PMichaelson,

I tried to replicate the issue that you are experiencing, but unfortunately I was not able to see the same behavior that you are seeing. When I ran a TestStand 3.1 sequence, which had a step that failed in the setup code group, the variable e.exec.ResultStatus from the function you listed in your post did return �Failed.� As long as your sequence is set to run the Setup and Cleanup code groups, I am not aware of any other settings in TestStand to force this behavior. If you are still having problems with this issue, you can create a small example which demonstrates this behavior, and feel free to attach it to this page. I will then see if I can replicate it on my end.

Regards,
Kevin Leonard
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,958 Views)