Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Custom Result Collection of Failed step results only

0 ratings | 0.00 out of 5
Print

Downloads

Filename: collect_only_failures.seq
Requirements: View

The attached sequence uses the PostStepFailure engine callback to catch when a step fails.
The results and TS container are then copied across in the appropriate format into the caller's Locals.ResultList.
This way, only failed results are collected.
This is important especially for the current XML report options which does not allow filtering of results going to the report, instead relying on the style sheet for display. Also if you only require a failure log, and not all the step data listing which could lead to very large report files.
The sequence was designed for TestStand 3.0 and works with the html, text and xml report methods.
It does not catch for flagged items inside a step, marked as includeinreport, or for the addextraresult activeX calls made previous.

All of the coding is done using ActiveX inside the callback sequence.
The callback sequence properties have been set to disable result collection for all steps inside that sequence.

If you want to use this for your test sequences, then remember to disable result collection on your steps, otherwise you'll get a step result for each step, and two for every failure.

Requirements


Filename: collect_only_failures.seq

Software Requirements


Application Software: NI TestStand Development System 3.0
Language(s): None

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).