NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Rerun failing step without failing entire test

Hi all,

 

I would like to have a pop-up if a step fails that gives the operator the option to rerun the failed step (I've got this part) AND have the overall test indicate a pass (right now if a step fails then passes, I get 2 entries on the report and the first one causes an overall fail). Should I modify the SequenceFilePostStep engine callback to re-run the step without the fail counting, and if so, how? (I'm trying to figure out how to dynamically reference the caller step to rerun it or change its result...) Or how else can I accomplish this?

I do NOT want to use the looping step settings (which does allow me to have an overall pass within a maximum number of attempt) because I need to have a pop-up after the step fails to give the operator the option to re-try or continue with the failure.

I will try to post the sequence file here in hopes that it will help you see a simulated piece of what I've got now.

0 Kudos
Message 1 of 5
(4,615 Views)

Hi

 

In this thread there is a example

that shows how it is done with the step type "SequnceCall"

http://forums.ni.com/t5/NI-TestStand/Repeating-a-Failed-Sequence-once-more/td-p/1042268/highlight/tr...

 

Hope this helps

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 2 of 5
(4,606 Views)

Checkout the example in the TestStand Example Folder under \Callbacks\PostStepFailureCallback

 

 

Regards
Ray Farmer
Message 3 of 5
(4,602 Views)

I just wrote a quick example for a colleague yesterday.  Here it is.

 

The trick is the Continue on Fail flag.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 4 of 5
(4,593 Views)

Sorry for the late response. I've been trying to incorporate these suggestions but have been fighting a new error that is unrelated. I'll let you know how it goes.

 

Thanks!

0 Kudos
Message 5 of 5
(4,570 Views)