04-19-2017 10:51 AM
hello
I would like to include a message in he end of my sequence, this message will be display only if the UUT fail the test, I know how to check the status of the test (pass/fail), so the condition to display this message would be:
if RunState.SequenceFailed == True
"display message with the failure"
end if
my question is: where teststand store the variable with the steps that failed?
SALUDOS!!!!!
04-19-2017 11:06 AM
Hi,
The Results are collected into Locals.ResultList - see this whitepaper for an overview:
Best Practices for NI TestStand Report Generation and Customization.
You can check if a step failed using:
PropertyExists("Locals.ResultList[x].TS.StepCausedSequenceFailure")
I hope this helps,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor