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