NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a summary of failed steps?

Solved!
Go to solution

Currently, I am using the .txt report format. I am using the data from the auto-generated report header and report body strings to create custom report. One thing I noticed is that the failure summary in the default report header only contains information on the first failed step. Unfortunately, I need to present a summary of all failed steps at the beginning of the report.

 

What variable do I need to access in order to obtain this summary? If the variable is an array or container of all test results, what's the data structure so I know how to parse for the failed steps?

 

I am using the base sequential model in TestStand 4.2 and I have copied the TestReport callback from the base model and added my own customizations to generate the report. I am new to TestStand (2 months) with no training so how and why explanations are helpful.

"All truths are easy to understand once they are discovered; the point is to discover them." -- Galileo Galilei

0 Kudos
Message 1 of 6
(4,140 Views)
Solution
Accepted by B.Settles

This might help you get started.  The link below shows how to modify the failure chain to include all steps.

 

http://zone.ni.com/devzone/cda/tut/p/id/4563

 

Thanks,


PH

Message 2 of 6
(4,111 Views)

That definitely looks like what I'm looking for. I'll try it out when I get back to work.

 

Thanks.

"All truths are easy to understand once they are discovered; the point is to discover them." -- Galileo Galilei

0 Kudos
Message 3 of 6
(4,101 Views)

The tutorial works with TestStand 4.2.1, just note that the step in Part B of the tutorial is in the "PutOneResultInReport" sequence. Also, the local added in Part A gets added to this sequence.

"All truths are easy to understand once they are discovered; the point is to discover them." -- Galileo Galilei

0 Kudos
Message 4 of 6
(4,089 Views)

This solution and the tutorial do not work.

 

I have done all steps, but if i "Check Precondition" or "Check Expression" Teststand reports, that the varibale Parameters.Result.Status or Parameters.Result.Ts.xxxx is unknown

 

What i am doing wrong?

 

Thanks in advance.

 

Lars

0 Kudos
Message 5 of 6
(3,880 Views)

Parameters.Result.Status is only 'Valid' during runtime and are not valid during editting.  These errors can be ignored.   Runtime vs edit time is a a common source of confusion in TestStand, for beginners.

 

Now did you try running a test to see if all the failed steps appear in the Failure chain?  Is what you mean doesn't work?

 

Thanks,

 

PH

0 Kudos
Message 6 of 6
(3,868 Views)