03-24-2009 08:34 AM
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
03-25-2009 10:11 AM
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.
03-26-2009 12:46 PM
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.