Testing export XML in Dynamics NAV
Hi there!
In short, the article is dedicated to covering export XML with automated tests. In the article I describe how to test export, how can you get automated tests usefull while refactoring or expanding functionality, how to expand existing functionality without breaking it down.
The most important points:
- Tests help you to keep covered functions working;
- Use events to skip unnecessary behaviour;
- Use manual event subscriptions in tests;
- Divide work to small steps (the code above could be refactored into smaller pieces with the help of tests);
- Use buffered data to allow the use of functionality from different places.
The whole article with the screens and pictures you can read here.