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 an RDP class

Report data provider is the most important class while creating and designing an SSRS report in Dynamics AX R3. In an RDP class, all the business logic has been written in this class. In earlier chapters, we discussed the creation of SSRS reports using the RDP class. So in this recipe, we will use the existing RDP class VendInvoiceDP and we will write the unit test class for this RDP class.

Getting ready

To work with this recipe, we will create PKTVendInvoiceDPTest class which will extend the SysTestCase class.

How to do it...

  1. In an RDP class, all the business logic is written in the processReport() method. So we will write the unit test method for the processReport() method. First, create the PKTVendInvoiceDPTest class:
    class PKTVendInvoiceDPTest extends SysTestCase
    {
        RecId mainAccount_11005;
        RecId accountStructureId; 
        #define.inv1('inv1')
        #define.DimHier_BalSht('DimHier_BalSht')
        #define.p1('p1')
    ...

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