Code coverage

maikelj
Member Posts: 50
Hello,
Is there a place where it's cool?
Here's my question:
Can anybody tell me how to start code coverage (like the client monitor)?
If I open the help it only says a procedure to open Navision with a certain command line.
But what I want to do is start the code coverage when Navision is already started and then using a codeunit...
So can anybody help me.
Maikel
Is there a place where it's cool?
Here's my question:
Can anybody tell me how to start code coverage (like the client monitor)?
If I open the help it only says a procedure to open Navision with a certain command line.
But what I want to do is start the code coverage when Navision is already started and then using a codeunit...
So can anybody help me.
Maikel
0
Comments
-
Here in our office it is really cool
But to answer your question: Code Coverage is only available in Navision Attain. This is taken from the MBS-Navision 3.70 on-line help:Logging Code Coverage
The Code Coverage tool enables you to check how much of the code is used by any given function. This tool works in the same way as the debugger and therefore reflects any limitations that may exist in the debugger.
Programmers can use the tool to log code coverage when they customize Navision. Code logging gives you an overview of the code that is executed in a usage scenario.
The Code Coverage tool can often be used instead of or in combination with the C/AL Debugger. Code logging can give programmers a quick overview, while step by step debugging can take a long time. You can read about the C/AL Debugger in the Application Designer's Guide.
The Code Coverage window lists the objects that have been used in a usage scenario.
To Log Code Coverage:
Click Tools, Code Coverage to open the Code Coverage window.
Click Start to clear the contents of the Code Coverage window and begin logging the code.
Perform the operations that you want to monitor.
When you are finished, go back to the Code Coverage window. It now contains a list of the tables, forms, reports, dataports and codeunits that were used in the operations that you just performed.
Click Stop when you are finished logging the code.
Select the object for which you want to see the code that was used. You can also select an object without first clicking Stop.
Click Code and the Code Overview window opens.
The Code Overview window displays the code that is contained in this specific object. The lines of code that have been executed are colored black. The lines of code that have not been executed are colored red.
The Code Overview window displays the lines of code in the same way as the debugger:
Bullets are shown on each line that contains executable code.
The lines that are marked with a bullet are the only ones for which the information displayed is correct.
The lines of code that are not marked with a bullet are simply displayed in the same colors as the lines of code that surround them.
The information displayed in the Code Overview window is similar to the information shown in the debugger. The main difference is that in the debugger you see the code being executed, while the Code Overview window shows you which lines of code have been executed.
Running the Code Coverage tool when you are using Navision can generate an extremely large log file.
Note
You must not modify objects and log code coverage at the same time, because this will give inconsistent results.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Thanks Luc,
I referred to the table monitor in stead of code coverage.
That was my problem. Now it works.
In our office we don't have an airco
Have a nice (and cool) weekend everyone.0 -
Hi all,
Just a short remark :
Code Coverage did not start with Attain , it is already available in Financials 2.60.Kai Kowalewski0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions