Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update
  • Toc
  • feedback
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

By : Agarwal, Aggarwal, Elangovan
4.4 (7)
close
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

4.4 (7)
By: Agarwal, Aggarwal, Elangovan

Overview of this book

Microsoft Dynamics AX 2012 R3 Reporting Cookbook is recommended for Dynamics AX developers and .NET-based SSRS developers looking to familiarize themselves with the new AX reporting framework.
Table of Contents (12 chapters)
close
11
Index

Creating a unit test class for a contract class

To write the unit test class of a contract class, first of all we need to create a new contract class and then test the logic of that contract class using the unit test class. In this recipe, we will use an existing contract class; we will write the unit test class of that existing contract class. As explained in earlier chapters, a contract class consists of parm methods which are used to set or get the variables. A unit test class extends the SysTestCase class.

We can also check the code coverage of business logic in Microsoft Dynamics AX R3 using a unit test parameter.

Getting ready

To work through this recipe, you will require AX 2012 R2 or AX 2012 R3 rich client with developer permission. You need a contract class for the unit test class. We will use the existing contract class, VendInvoiceContract.

How to do it...

We will first set some parameters of unit test in Dynamics AX R3 to measure the code coverage of business logic, as follows:

  1. Go...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete