How To Use Handler Functions To Interact With UI in Microsoft Dynamics NAV 2016
How To Use Handler Functions To Interact With UI in Microsoft Dynamics NAV 2016
Introduction 3
Audience 3
Technology 3
Demo instructions 3
Scenarios 4
Demo 1 – use TestPage to test UI 4
Conclusion 11
Disclaimer 11
Audience
The demonstrations in this document are intended for partner resources such as developers, and testers. It is intended
for everyone interested in shipping stable repeatable solutions.
Technology
Microsoft Dynamics NAV 2016
The majority of the demonstrations are completed in the security role of “System administrator.”
Demo instructions
The demonstration scenarios in this demo script do not require demo data preparation. Also, the scenarios are
dependent on each other. The demonstrations scenarios build on each other.
To speed up the entering of C/AL code use attached object in TXT format.
1. In Development Although we
Environment open strongly
Object Designer by recommend not to
selecting Tools, Object use tests based on
Designer. UI, sometimes
2. Click Codeunits. there is no other
3. Click New. way to be sure that
4. Open Properties your modification
window by selecting works properly.
View, Properties.
5. Set the properties: An example where
ID = 50001 UI tests are
Name =SCM Whse. Bin required, is the
Content Small Business
SubType = Test functionality. This
6. Close Properties functionality is
window. based on standard
tables but it has a
rich logic
implemented on
the page layer.
Let’s create a new
test codeunit.
employee.
Note: the table
7301 Warehouse
Employee has a
table relation to
table User, but the
property
ValidateTableRel
ation is set to
False. This means
that you can create
a warehouse
employee even if
you have no users
in database.
24. In windows client Once completed,
25. In the Test Tool, select notice that the test
Run and then select All. passed successfully
26. Click OK now.