When using Code Coverage, I would like to:
a) filter out the lines have not been executed (i.e. the red lines)
b) export the lines (actually, just the black lines) to a single text file.
Does anyone konw how to do this?
Thanks,
Alastair
Alastair Farrugia
0
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks for the quick reply.
I realise now that I can even remove the filter on the Object Type and Object No. and this will show me all the executed code in all the objects. Unfortunately, I can't display the Object Type and Object No. - the only column that shows in "View Columns" is Code. If there is a way of showing those fields that would be great.
Regards,
Alastair
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
This is useful!
Dynamics NAV Enthusiast
1. Design the Code Coverage form (Form 566) and add the fields Object Type and Object ID.
Add some documentation, save and close the form.
2. Go to Tools – Debugger – Code Coverage – Code.
3. Press Ctrl+F7 to view the filters.
4. Remove the filters for Object Type and Object ID (so that you can see code for all the objects together – you can identify which code is for which object thanks to the fields added in step 1 above).
5. Add a filter for No. of Hits, <>0 (this will show only the black lines).
6. If you want you can even copy the lines to Excel.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Also if you use SQL perform tools. It combines Code coverage with client Monitor so you can debug those really bad code and loops.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
edit: [removed a wrong example and replaced with this one]
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog