Our example is a simple requirement:
To prevent a user posting purchase invoices headlong he has to enter manually the total amount of the invoice lines in a field on the invoice header and only when header amount and lines total match can the document be posted.
This feature might ring a bell for those of you working with NAV BE and NL as it's part of the standard NAV BE/NL application. However, for brevity sake, we will not take into account all the details of the BE/NL requirements.
So let's make up our initial version of the Test List based on the above requirements:
Create PI (purchase invoice) with 1 line and check that total line amount is calculated right
Create PI with multiple (2) lines and check that total line amount is calculated right
Create PI with multiple lines and check that doc. amount verification succeeds
Create PI with multiple lines and check that doc. amount verification fails
Note that, while moving forward, the list might grow as we might stumble across some additional issues, but for now it seems a sufficient list, so let's go ...
... shortly after the following.
To be able to make use of the NAV testability features in it's full extend we need to:
Get the Application Test Toolset for Microsoft Dynamics NAV 2009 SP1 here and import the .fob.
Finally we are set and can go. [au]
Note that on NAV 2013 you will not find the "Show C/AL Testability properties" option. You could say it is turned on by default.