NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I count the total number of passes/failures and show on the final report

Solved!
Go to solution

I have a sequcence problem :

I have a total of 5 test items in sequence, and at the report  status will shows 5 passes or maybe 5 fails of each step, how can I count the total number of passes/failures and show on the final report 

0 Kudos
Message 1 of 3
(311 Views)
Solution
Accepted by topic author guanhuachen452

Hi

 

You can use XML or HTML parsers to modify the existing report and add the pass/fail information

or

You can create a sequence file callback to store the step pass/fails counts for each step and add to report in any of the two methods.

 

  1. https://www.ni.com/docs/en-US/bundle/teststand-api-reference/page/teststand-api-ref/report.htm
  2. https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHzJCAW&l=en-IN
0 Kudos
Message 2 of 3
(294 Views)
Solution
Accepted by topic author guanhuachen452

A simple alternative to modifying how the report is generated would be to use a PostMainSequence callback to process the results list from MainSequence, count passed and failed (and you could be smart about what results you include), and then add additional results to the UUT information, which will be automatically added to the report header if you are using built-in report features in TestStand. Attached is a TestStand 2019 example sequence file of how to do this.

Scott Richardson
0 Kudos
Message 3 of 3
(234 Views)