From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,348 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,343 Views)