good to see These objects finally arriving at mibuso. However, if you "distribute" this download, originally from one of my blog Posts (see the English translation in our German NAV developers blog, scroll down for original download), please leave all Copyright stuff and especially the MS-PL link intact for all contained objects.
Code Coverage for Dynamics NAV 2013
This Code Coverage implementation was originally released back in August 2012 on German Microsoft Dynamics NAV Developers Blog, translated), when a Code Coverage front-end was not available for Dynamics NAV 2013.
no, this is an implementation from before we released this together with the Application Test Toolset. So if you like to use the Standard implementation, please download the complete package.
No of hits seems to be missing in the code coverage. Quite pointless, if the executed lines in c/al code is shown without no. of hits. I normally use this in the previous versions to see which line of code is hit, before I use the debugger to dive in deeper.
@jordi79: The No. of Hits is included in the code page. simply add the column. On the main page the No. of Hits is displayed as weight per object in percent.
@Johannes: Not sure how you would like to see this implemented. This would mean to parse the output, as this Information is not logged in Code Coverage. Maybe, starting with 2013 R2, the Application Profiler fits your needs: http://navappprofiler.codeplex.com/
@jordi79: The No. of Hits is included in the code page. simply add the column. On the main page the No. of Hits is displayed as weight per object in percent.
@Johannes: Not sure how you would like to see this implemented. This would mean to parse the output, as this Information is not logged in Code Coverage. Maybe, starting with 2013 R2, the Application Profiler fits your needs: http://navappprofiler.codeplex.com/
Cheers
Carsten
What I'm trying to do is determine what tables are modified.
MS has set a limit for 3 tables to write to, when using the Perpetual Limited User License. So I see this as a common task for NAV developers from now on.
SQL profiler will give me the answer, but I hav'nt been able to set it up properly. Gonna try a 2012 version soon.
Thanks for pointing me towards NAV App Profiler.
I've checked it out quick, and found that it 1) Did'nt reveal my Inserts/Delete transactions 2)cuts off the transaction code
So it's not the Tool for this job, yet, any ways, but very interesting.
-
I've modified your Code Coverage to mark any hit lines, that contain MODIFY,DELETE...etc. and thats what i'm using for now.
Best regards / Venlig hilsen Johannes Sebastian MB7-840,MB7-841
Blue is for function-names and orange for normal lines.
When a line is black, the line has been hit.
I adjusted the code coverage page and added all other fields.
Hi all,
I download and use many times the tool for Code Coverage in NAV version 2013 whit much satisfacion results!
I tried to import and use the same object's in a NAV 2013 R2 NAV version, but I not be able to use the tool beacause when I run the page I received this error:
"you do not have the following permissions on page code coverage execute. Page view - code coverage must close";
when I tried to add the permission to table Code Coverage in the page I received this error:
"You do not have permission to read the Code Coverage table".
I assume you are using the/a demo license or at least a license which does not cover Pages 50020/50021. Please make sure you are using a proper license file.
Let me know if you need further assistance.
Comments
good to see These objects finally arriving at mibuso. However, if you "distribute" this download, originally from one of my blog Posts (see the English translation in our German NAV developers blog, scroll down for original download), please leave all Copyright stuff and especially the MS-PL link intact for all contained objects.
Cheers
Carsten
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
This Code Coverage implementation was originally released back in August 2012 on German Microsoft Dynamics NAV Developers Blog, translated), when a Code Coverage front-end was not available for Dynamics NAV 2013.
In the meantime, a different implementation of Code Coverage is part of the official Application Test Toolset, available on PartnerSource. See http://blogs.msdn.com/b/nav/archive/201 ... -2013.aspx.
Update 21/06/2013: original version posted with reference of source
http://www.mibuso.com/dlinfo.asp?FileID=1536
Discuss this download here.
So is this equal to what is included in the App. Test Toolkit?
Johannes Sebastian
MB7-840,MB7-841
no, this is an implementation from before we released this together with the Application Test Toolset. So if you like to use the Standard implementation, please download the complete package.
Cheers
Carsten
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
But I really miss being able to see whether a table is modified or just read.
Johannes Sebastian
MB7-840,MB7-841
@Johannes: Not sure how you would like to see this implemented. This would mean to parse the output, as this Information is not logged in Code Coverage. Maybe, starting with 2013 R2, the Application Profiler fits your needs: http://navappprofiler.codeplex.com/
Cheers
Carsten
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
What I'm trying to do is determine what tables are modified.
MS has set a limit for 3 tables to write to, when using the Perpetual Limited User License. So I see this as a common task for NAV developers from now on.
SQL profiler will give me the answer, but I hav'nt been able to set it up properly. Gonna try a 2012 version soon.
Thanks for pointing me towards NAV App Profiler.
I've checked it out quick, and found that it 1) Did'nt reveal my Inserts/Delete transactions 2)cuts off the transaction code
So it's not the Tool for this job, yet, any ways, but very interesting.
-
I've modified your Code Coverage to mark any hit lines, that contain MODIFY,DELETE...etc. and thats what i'm using for now.
Johannes Sebastian
MB7-840,MB7-841
Tino Ruijs
Microsoft Dynamics NAV specialist
Blue is for function-names and orange for normal lines.
When a line is black, the line has been hit.
I adjusted the code coverage page and added all other fields.
Tino Ruijs
Microsoft Dynamics NAV specialist
I download and use many times the tool for Code Coverage in NAV version 2013 whit much satisfacion results!
I tried to import and use the same object's in a NAV 2013 R2 NAV version, but I not be able to use the tool beacause when I run the page I received this error:
"you do not have the following permissions on page code coverage execute. Page view - code coverage must close";
when I tried to add the permission to table Code Coverage in the page I received this error:
"You do not have permission to read the Code Coverage table".
Can someone give me some help, please?
Thank yuo very much.
Best regards.
Gianp.
I assume you are using the/a demo license or at least a license which does not cover Pages 50020/50021. Please make sure you are using a proper license file.
Let me know if you need further assistance.
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
Thanks for suggestion!!!
Code Coverage tool run good in the NAV 2013 R2 also =D>
Best regards.
Gianp.