Book Image

Microsoft Dynamics NAV Development Quick Start Guide

By : Alexander Drogin
Book Image

Microsoft Dynamics NAV Development Quick Start Guide

By: Alexander Drogin

Overview of this book

Microsoft Dynamics NAV is an enterprise resource planning (ERP) software suite for organizations. The system offers specialized functionality for manufacturing, distribution, government, retail, and other industries. This book gets you started with its integrated development environment for solving problems by customizing business processes. This book introduces the NAV development environment – C/SIDE. It gives an overview of the internal system language and the most essential development tools. The book will enable the reader to customize and extend NAV functionality with C/AL code, design a user interface through pages, create role centers, and build advanced reports in Microsoft Visual Studio. By the end of the book, you will have learned how to extend the NAV data model, how to write and debug custom code, and how to exchange data with external applications.
Table of Contents (10 chapters)

Capturing code coverage

Code coverage analysis is a very useful tool when it comes to identifying which code has been executed in a particular application run. A typical situation in which a developer turns to the code coverage tool is when a record is modified or inserted, and the source of the change is unknown. You push just one button, but there is a huge amount of code hidden underneath it, and it can be tough to identify the particular line of code that modified the record. To narrow down the search, we can capture code coverage to see which lines of code were actually executed when a particular action was triggered.

The code coverage tool is activated from the client application, not from the code editor. To run it, start the NAV client and navigate to Departments | Administration | Code Coverage. To collect code coverage, follow these steps:

  1. Push Start to run the code...