NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

runtime error postexpression

Hello,

from the TestStand 4.1 Reference Manual, table 3.4 "Order of Actions a Step Performs", I gather that steps 16 (Evaluate Post-Expression) and 17 (Evaluate Status expression) are executed before step 27 (Call Post-Step Failure Engine callback). Therefore, I would assume that these expression are evaluated in case of a runtime error, but my observations indicate otherwise.

 

Does TestStand evaluate these expressions also in case of a runtime error?

 

Perhaps an important detail: I am testing this by setting Step.Result.Error.Occurred=True in the Pre-Expression; the table 3-4 does not indicate that this should make a difference, but ...

 

Regards

Peter

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

Hi Peter,

 

I think your right. TestStand does not evaluate Post Expression and Status Expression in case of a runtime error of the step.

So you better should retry the step with the runtime error until he has no error and then the 2 expressions will be evaluatet.

 

 

Regards
DianaS
0 Kudos
Message 2 of 3
(3,190 Views)

TestStand does not evaluate Post Expression and Status Expression in case of a runtime error of the step.

Try checking the errors in Substeps instead of Post Expresession that may work.

 

 

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