02-01-2011 05:59 AM
Hi
I am hoping to get some advice about adding retest functionality to our existing test sequences. What I am trying to do is when a step fails I want to jumps to the retest step which calls the retest.vi (contains debug info and report printing functionality). Once the retest vi has executed I want to either jump back to the failed step (retest) or continue with the sequence (next step). The difficulty am having is I wish to use the retest step when any of the step fails therefore the Post action "goto step X" must be dynamic based on the step that failed.
I was wondering if anyone knows of a method of storing current step index to a variable, then using the step index after the retest has been executed to select which step to jump back to?
Any help would be great
Dave
02-01-2011 07:33 AM
Had success after lunch, used RunState.Step.Name to get the name of the failed step and RunState.NextStep.Name to get the name of the step that should be excuted next. Both of the names are then saved to local varibles. On failure i call then call the retest step (Post Action - goto). After the retest step has executed i use the local varibles to determine which step to jump back to (Post action > Goto step > Specify By Expression).
Dave