Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

How to debug or unit test DataProvider classes in dynamics AX 2012

$
0
0

Is there any way to debug a DataProvider class, a class that extendes from SRSReportDataProviderBase, When my AOS, my client and my SQL are separated in different servers?

Or there is any way to create a unit test or a job, that I could execute the DataProvider class? so I could debug it?

I tryed to create a job so I that I can debug it, but of course their dependencies weren't injected. Here is the example:

          static void Job2(Args _args)
          {
           JmgEmplSignedInDP empl;
           ;
            empl = new JmgEmplSignedInDP();
            empl.processReport();
          }

And I got the following error, becuase it did not have their dependecies:

 JmgEmplSignedInContract object not initialized.
 Stack trace
 (S)\Classes\JmgEmplSignedInDP\processReport - line 12
 (C)\Jobs\Job2 - line 8

There is any way to construct a DataProvider class so I can debug it??


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>