NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Retest Panel - Call by Post Actions

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

0 Kudos
Message 1 of 2
(2,901 Views)

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

 

Message 2 of 2
(2,898 Views)