NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the report shows only top level steps

HI,
 
I use many subsequences in my tests.  I have no interest to see them in the report.  How can I force the report to show only top level steps?
 
Thanks
Rafi
0 Kudos
Message 1 of 3
(3,478 Views)

Rafi,

In the properties of the Sequence, there is a setting 'Disable Results for all steps'

Regards

Ray Farmer 

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,470 Views)

I needed to prevent 'Skipped' steps from appearing in my reports.  One way to do this is to override the SequenceFilePostResultListEntry callback in the model.  You do this by clicking on Edit and then Sequence File Callbacks and then find SequenceFilePostResultListEntry in the list and click the Add button.

Edit your new callback in your sequence file to check for a pre-condition.  In my case I checked for Parameters.Result.Status == "Skipped" since that parameter is set to Skipped, Done, etc. based on the result.

If the condition was true then my only step in the callback was to set Parameters.DiscardResults = True.  The TestStand model will then throw that result away when it processes the report.  You could add a step for every type of data you wish to discard.

 

A second method that is easier to implement, but time consuming, is to select each step you DON'T want in your report and bring up the Properties for that step.  Under the Run Options tab, deselect the Record Results box.  That will keep the results of that step out of the report, but you have to do this for EVERY step you don't want to have reported.  The first approach I provided acts to filter the results.

If you aren't sure what the Parameters.Result.Status will be, then set a breakpoint after that step is executed and scan the parameters when the sequence is halted there.  You can then detect the actual text used as a result for that step, such as "Done" and can set your pre-condition appropriately.

 

 

0 Kudos
Message 3 of 3
(3,456 Views)