NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

If there is fail, retray current iteration of looped sequence

Hello, 

 

I have created a sequence wich turn 3 times ( looped), my problem is when I put a retry, the retry is done only when all iterations have been executed. 

 

But in my case I want to retry the current failed iteration. 


Please, Find in attachment a screenshot of  the loop setting

 

Thank you for any help.

 

Chakib11_0-1599208872851.png

 

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

What about a step within the loop to retry on failure?  I have used the Pre Expression to record the StepIndex of the Step I want to go back to on a failure and then included a Retry step that sets the NextStep Index to the StepIndex of the step I want to go back to.

 

Retry Step.JPG

Message 2 of 3
(1,814 Views)

Hello Steve,

 

Thank you for your answer.

 

In my case, I didn't use this kind of loops.

 

The step that I want to loop is a sequence call, so I used the looping properties. and the retry is set in atributes.

 

on debug, I noticed that when there is fail in the first iteration for example, the retry is done after all iteration were exucted! 

I tried to change the type of loop to "Pass/Fail count" to stop the iteration during the first fail. but i didn't work...


Chakib11_0-1599462989342.png

                            -Loop Setting-

 

Chakib11_1-1599463035824.png

                     -Retry attributes-

 

 

Regards.

 

Chakib,

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