As you might now, I am working as a Software Development Engineer in Test at Microsoft Development Center in Denmark.
But the only real test framework that comes with AX is the SysTest framework (you can read more about it here).
Below you will find another framework for Dynamics AX, that was written by one of the members on my test team and allows to implement and use mock objects for testing the AX application.
More information and download link
It would be great if you could try it out and provide your feedback here or directly on the author's blog.
Tools and tutorials for Microsoft Sustainability Manager, Microsoft Cloud for Sustainability, Microsoft Emission Impact Dashboard, as well as Microsoft Dynamics AX aka Microsoft Dynamics Supply Chain Management (F&O)
Code highlighting
Monday, October 26, 2009
Thursday, October 22, 2009
Running a class from AOT or "How to assign a class to an action menu item?"
OK, so this might seem as a very simple question for many of you.
But, in reality, I still now and then meet people who have worked with AX for quite some time, but don't know this very basic concept.
Therefore, I just want to briefly describe it here to refresh everyone's memory
Apart from allowing to run the class from AOT, this will allow to assign it to a menu item (according to Best Practices, it should be a menu item of type Action), and run the class using this menu item.
Below is the correct syntax of the main method:
Please also note, that there is an editor script that contains the template for the main method. You can invoke it from Scripts->template->method->main
But, in reality, I still now and then meet people who have worked with AX for quite some time, but don't know this very basic concept.
Therefore, I just want to briefly describe it here to refresh everyone's memory
Apart from allowing to run the class from AOT, this will allow to assign it to a menu item (according to Best Practices, it should be a menu item of type Action), and run the class using this menu item.
Below is the correct syntax of the main method:
public static void main(Args _args)
{
//Your code here
}
Please also note, that there is an editor script that contains the template for the main method. You can invoke it from Scripts->template->method->main
Subscribe to:
Posts (Atom)