08-10-2017 04:29 AM
Hi all,
I'm trying to allow a user to retry a step when failed. Here's my approach:
step.Result.ButtonHit == 1 ? (RunState.Caller.NextStepIndex = RunState.Caller.StepIndex) : (RunState.Caller.NextStepIndex = RunState.Caller.NextStepIndex), step.Result.ButtonHit == 1 ? (FileGlobals.Retry = True) : ( FileGlobals.Retry = False)
Parameters.DiscardResult = (Parameters.Result.Status == "Failed" && FileGlobals.Retry == True)
FileGlobals.Retry = False
The above works absolutely fine if I use a step with no adaptor, but as soon as I use a labivew adaptor I get errors saying that the Step ID cannot be found. On investigation, the step ID doesn't exist anywhere in my sequence.
Where am I going wrong, how can I repeat a failed test using a labview adaptor without it appearing in my report that it failed if it passes on the retry?
08-10-2017 04:52 AM
Hi,
This is strange because I've replicated your sequence as you've described above and it works for No Adaptor and LabView Adaptor(!)
Can you post your sequence file and we'll have a look.
Regards,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
08-10-2017 05:18 AM
Hi Charlie,
I found the issue, my labview steps were set to go to an invalid step on failure.
Thanks
08-10-2017 06:26 AM
No problem - glad I could help.
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor