NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Disabling Result Recording for Skipped Steps in Teststand increments "Number of Results" on text report

Solved!
Go to solution

I followed the instructions in the link below and all works as expected. This link describes how to Programmatically Disable Result Recording for Skipped Steps in Teststand.

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000fyuGSAQ&l=en-US

 

Only problem with this solution is it still increments the "Number of Results" on text report. How do I fix this so it doesn't increment "Number of Results"?

 

Thanks in advance!

 

0 Kudos
Message 1 of 12
(180 Views)

IMHO this is a built-in feature:

 

Oli_Wachno_0-1715579848911.png

After all the Step has been kind of executed...

 

I guess therefore it's the best option to modify result generation. I wouldn't go down the rabbit hole messing with the result list

 

Are you using the built-in reporting?

 

0 Kudos
Message 2 of 12
(125 Views)

Hi, 

 

If you do not need the results of the skipped step, you can programmatically delete the skipped steps result from the resultList. That should fix the count in "Number of Results"

 

Regards, 

Anand Jain

NI

0 Kudos
Message 3 of 12
(105 Views)

Thanks for the reply! How would I do this?

0 Kudos
Message 4 of 12
(101 Views)

Yes, I am using the built-in reporting. How would I implement your proposed solution?

0 Kudos
Message 5 of 12
(100 Views)

Can you try this?

 

Oli_Wachno_0-1715679792261.pngOli_Wachno_1-1715679814888.png

 

0 Kudos
Message 6 of 12
(67 Views)

I did try this but no luck. It is still incrementing the "Number of Results"

0 Kudos
Message 7 of 12
(58 Views)

That's a pity....

 

IMHO there's these two roads to go: either scan the "scan and clean" the result list or create your own version of the result processing

 

Oli_Wachno_0-1715750170632.png

 

Before choosing either of these roads you have to consider, whether you will be re-using this (organization-wide) and how well this has to scale.

 

 

0 Kudos
Message 8 of 12
(51 Views)

Apologies for the confusion. If you follow the instructions from the link and do set "Parameters.DiscardResult = True" in the callback sequence, the "Number of results" should be correct. You are effectively deleting the item from the resultList when you set DiscardResult to true. 

 

Can you verify that you are not getting the skipped steps in the report? In my simple test using the latest version of TS, it seems to work correctly.

 

Regards, 

Anand Jain

NI

Message 9 of 12
(45 Views)

I am not getting "Skipped" steps in the report (which is good) however, it is adding these "Skipped" Steps to the "Number of Results" total which is what I am trying to fix. Note: I am using TestStand 2017.

0 Kudos
Message 10 of 12
(29 Views)