NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Intentionally create a runtime error from TestStand

Solved!
Go to solution

Hi,

 

A lot of our test sequences are used for different variants of the same product. Variant dependent tests are handled by if, else if, else statements. The else statement is used for unknown variants. When running into such an else statement i don't want the test sequence to continue. Is it possible to intentionally create a runtime error? Something like a "not yet implemented" exception in .NET?

 

Thanks in advance,

Stef

0 Kudos
Message 1 of 2
(2,360 Views)
Solution
Accepted by topic author svh

Hi Stef

Inside your Else you could add a Statement step that sets the value of its Step.Result.Error property to the error condition required.

Steve

Message 2 of 2
(2,355 Views)