06-29-2017 03:58 AM
Hi All,
Let's say I have some step which should establish connection with UUT. The step is not stable and fails sometimes. I want to adjust some parameter automatically and run the step again. If the step passed after adjustment go to next test but if it failed after three attempts go to the cleanup. The question is: what is a proper way to implement this situation ?
Thanks
Solved! Go to Solution.
06-29-2017 04:32 AM
Hi Airspan,
You can this by using post-expressions and step-looping.
1). Change the Step Settings >> Looping tab to Pass/Fail Count of 1 Pass and a maximum of 3 tries:
2). Add a post-expression and change the parameter to use the local adjustment value:
I've attached an example sequence to show you how this works.
I hope this helps,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
06-29-2017 05:46 AM
Charlie,
Thank you for quick response.
Actually my real situation is following:
I have a step <Wait For Sync> (PassFail) which is waiting for sync signal from UUT for some period of time.
if <Wait For Sync> failed I want to call some step (<RequestSyncSignal>) which will request of UUT to send sync signal again and repeat <Wait For Sync> after that.
After three failed loops of Wait For Sync go to Clean up else go to the next test . As far as I understand Post-Expression cannot help me with this...Isn't it?
BR,
06-29-2017 06:31 AM - edited 06-29-2017 06:40 AM
Airspan,
You're right - as this uses multiple steps, step looping and post-expression aren't the best solution.
In this case, I would suggest using a Do..While loop until the sync is successful or it has had three attempts and failed:
I've attached an example.
Best regards,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor