NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically disable result recording for skipped Steps or sequence calls

Solved!
Go to solution

hii,

 

I want to  disable result recording for steps that are skipped (due to Precondition selection) .

 

I tried in SequenceFilePostResultListEntry callback  but did not find any elegant solution. I want to avoid using "SequenceFilePostStep"  callback.

 

any easy ideas  to implement the same.

 

regards,

Akshay Parab

 

0 Kudos
Message 1 of 5
(4,408 Views)
Solution
Accepted by topic author aparab

Hi Akshay,

 

I think you were on the right path with using the SequenceFilePostResultListEntry callback; I would use that callback with the following Statement Step:

 

Pre-Condition: 

Parameters.Step.Result.Status == "Skipped"

Post-Expression: 

Parameters.DiscardResult = True

 

 

I've attached an example.

 

I hope this helps,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 2 of 5
(4,396 Views)

thanks

0 Kudos
Message 3 of 5
(4,373 Views)

Thanks for pointing out!

 

Regards

Juergen

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

No problem Smiley Very Happy

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

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