Chapter 3: The Testability Framework
Having discussed the why, when, what, and a first, general how of test automation, it's time to turn our focus fully to Business Central. In this chapter, we will discuss how Business Central facilitates you to write and execute automated tests. The specific feature that enables this is called the testability framework.
The testability framework was introduced in the platform with Dynamics NAV 2009 Service Pack 1. For the first time, developers were able to build test scripts in C/AL code and run them in the client. At that time, however, you could only program headless tests; that is, tests that do not use the user interface (UI) to trigger the business logic. The testability framework was a follow-up to an internal tool called the NAV Test Framework (NTF) and had been used and worked on for a couple of years already.
NTF allowed tests to be programmed in C# and ran against the Dynamics NAV UI. It was a neat system, with a neat technical...