NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Message of failure in the end of the sequence

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!!!!!

0 Kudos
Message 1 of 2
(2,195 Views)

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

0 Kudos
Message 2 of 2
(2,190 Views)