NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

report if fail not if pass - how?

With a step's "record results" option set to false and its "step fail causes seq fail" option set to true is there a way to cause that step to report if it fails but not report if it passes? I'd like to enable this behavoir for every step in a group of sequence files. Is there a general station option for this or perhaps a sequence file option to do this?
0 Kudos
Message 1 of 6
(3,630 Views)
Kevin,

To be honest, I'm struggling with somewhat the same thing, but maybe I can help. The "Step fail causes sequence fail" will report UP to the calling sequence step, that the step (in the subsequence) failed. Therefore the SubSequence Call step will indicate a failure.

By unchecking the "Record Results", the subsequence step will not record the results.

I've configured all of my subsequence (library functions) to NOT generate ANY form of entry into the log, including any failures. However, each one does return a string parameter variable that indicates it's function in some manner.

There is an option in the Configure menu, Report Options, the "Result Filtering Expression" ring that my help you as "Record All Results", "Exclude Passed/Done/Skipped" (Faile
d only) and "Passed and Done Only".

Hope this helps.

Mike
0 Kudos
Message 2 of 6
(3,630 Views)
Kevin,

It sounds like Mike's suggestion to use the Result Filtering Expression is what you need.

Matt P.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 6
(3,630 Views)
The Result Filtering Expression doesn't help. Basically what I have are several setup type steps that I don't want in the test report unless they fail. Not all of these steps warrant an abort on fail but either way there should be some indication if failure occurs. By way of example I've attached a simple sequence file. I want the setup steps reported if they fail but not if they pass.
0 Kudos
Message 4 of 6
(3,630 Views)
Kevin,

Sorry, I don't see an easy solution for this. Basically what you want is to be able to NOT generate a report entry unless the step fails, and the only report filtering controls in TestStand (I'm using TestStand 3.0, and I beleiver that you are using TestStand 2.0) is through the Station controls (Configure menu, Report Options).

You might investigate if there would be an option in a ReportCallback that you can add to eliminate the entry (Edit menu, Sequence File Callbacks..., "ModifyReportEntry" or something of that nature.

Mike
0 Kudos
Message 5 of 6
(3,630 Views)
Kevin,

Mike is on the right track. You'll have to modify the report generation sequence - you'll find that under the ..\TestStand\Components\NI\Models\TestStandModels folder. For example inside of reportgen_html.seq, you'll find a sequence called PutResultsInReport, which makes a call to PutOneResultInReport. One solution would be to modify the PutResultsInReport sequence to skip the PutOneResultInReport sequence call if the criteria your failed setup steps is met.

Matt P.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,630 Views)