04-15-2019 05:28 PM
I am trying to implement some basic custom run-time error handling in which I retry a step a certain number of times before I throw up the gray TestStand Run Time Error dialog. I want to accomplish this by canceling the error if a FileGlobal called ErrorIterations is less than 3. Otherwise, I will let the error pass through SequenceFilePostStepRuntimeError and throw up the dialog box. My question is if I want to reset this file global after each successful step, can I reset FileGlobals.ErrorIterations to 0 at SequenceFilePostStep? Or does this step run before SequenceFilePostStepRuntimeError?
Solved! Go to Solution.
04-16-2019 05:30 AM
sequenceFilePostStep runs. If there is an error in the Step’s Result.Error then SequenceFilePostStepRuntimeError is invoked.
if the Step fails then SequenceFilePostStepFailure is invoked.
04-16-2019 07:44 AM
I think I understand but for clarification are you saying that each of them runs exclusively? For example, if SequenceFilePostStepRuntimeError runs, then SequenceFilePostStepFailure and SequenceFilePostStep do not run at all.
04-16-2019 08:16 AM
No the SequenceFilePostStep runs then depending on a failure or error which relevant sequence runs next.
there is an execution chart in the manual.
04-16-2019 08:32 AM
Thanks for pointing me in this direction, it looks like SequenceFilePostStep DOES NOT run when the error callback is initiated. Thank you!
04-16-2019 09:34 AM
It depends at what point the error occurs. It occurs in you step or after it then the yes it does. If it’s before your step run then no it doesn’t.