05-11-2024 04:14 PM - edited 05-11-2024 04:15 PM
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!
Solved! Go to Solution.
05-13-2024 01:02 AM
IMHO this is a built-in feature:
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?
05-13-2024 09:41 AM
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
05-13-2024 10:25 AM
Thanks for the reply! How would I do this?
05-13-2024 10:26 AM
Yes, I am using the built-in reporting. How would I implement your proposed solution?
05-14-2024 04:44 AM
Can you try this?
05-14-2024 04:25 PM
I did try this but no luck. It is still incrementing the "Number of Results"
05-15-2024 12:21 AM
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
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.
05-15-2024 01:07 AM
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
05-15-2024 10:57 AM
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.