NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete from ResultList Container array if step passes

I am trying to shorten my test report by deleting the last entry in the ResultList container array if the step passes so only failed steps will be put in report.  So I guess I have a few questions.   1. Will this work?  2. Is there bolean variable that indicates if a LIMIT test passed or failed?  3. Any better way to do this?

thanks,
Brian
0 Kudos
Message 1 of 2
(3,207 Views)
Hi Brian,

Question 1:
This will work, however there is an easier way. (see 3).

Question 2:
There isn't a boolean, but you can use the Step.Result.Status string. It will generally be one of the following:
      "Passed", "Failed", "Skipped", "Terminated", "Done".

Question 3:
The easiest method is to change the reporting options. For HTML and TXT reports (not XML), you can set the Report Filtering Expression to exclude "Passed", "Skipped" and "Done".
This will still store all the results in the ResultList container, however when the report is generated, it will only include items that match the Report Filtering Expression.

Simon Holman
Software Engineer
Certified LabVIEW Developer
Certified TestStand Developer

measX GmbH & Co. KG.
http://www.measx.com
0 Kudos
Message 2 of 2
(3,199 Views)