O'Reilly logo

Microsoft Dynamics AX 2012 R3 Reporting Cookbook by Deepak Agarwal, Chhavi Aggarwal, Kamalakannan Elangovan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required