NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Record result of a specific step only in failure cause

Hello,

 

I would like to know which is the manner to record result in the report a specific step only when it fails. I've seen a manner to do this but is with a statement expresion after the specific step. I would like to know if it's posible to do the same with the post-expresions in the same step.

 

Best regards.

0 Kudos
Message 1 of 4
(3,726 Views)

Hi,

 

The easiest way would be to sset the ReportOptions.ResultFilterExpression so that you only get the failed results. You can set this in Configure | Report Options.. menu item and setup the desired Filter or you could use the ReportOptions callback sequence and setup the expression at runtime.

 

Another way would be to use the SequenceFileResultList called back and discard the result if it wasn't a failure.

 

 

hope this helps

 

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,718 Views)

Hi,

 

The last solution is the most apropiate for my aplycation. I need to remove the last element in the ResultList. The problem is that I don't know how to do this. Could someone give me an example, please.

 

Regards,

 

Priser

0 Kudos
Message 3 of 4
(3,715 Views)

Hi,

 

I believe there is an example in the TestStand Examples folder under Callbacks.

 

 

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,676 Views)