NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to stop TestStand reporting an error when an exception is raised by a C# module?

I'm producing some tests that use C# libraries developed in house. These may on occassion throw an exception that I don't care about, but on the step that makes the call I end up with TestStand always reporting 'Error'. Is there some way to stop this happening? My Pass / Fail criteria should still be available, and so an exception that I don't care about is hiding the result from me.

0 Kudos
Message 1 of 3
(3,333 Views)

An unhandled exception is always a problem. If TS would not take care of it, it would be passed on to the OS. So the OS would kill the task throwing the exception (Unhandled Exception error), which in that case would be the OS process calling into TS.

 

So i strongly recommend your collegues to implement proper exception handling in their code modules. If the exception is of no concern for you, they have to make sure that the exception never leaves the code module.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 3
(3,323 Views)

Norbert,

 

Thanks for the input. Thinking about it (and with my limited knowledge of C#) I agree with your response. I'll go and beat the software engineers around the head until I get my own way.

 

Thanks,

 

Simon

 

0 Kudos
Message 3 of 3
(3,321 Views)