Book Image

.Automated Testing in Microsoft Dynamics 365 Business Central

By : Luc van Vugt
Book Image

.Automated Testing in Microsoft Dynamics 365 Business Central

By: Luc van Vugt

Overview of this book

Dynamics 365 Business Central is the new cloud-based SaaS ERP proposition from Microsoft. It’s not as simple as it used to be way back when it was called Navigator, Navision Financials, or Microsoft Business Solutions-Navision. Our development practices are becoming more formal, and with this, the call for test automation is pressing on us. This book will teach you to leverage testing tools available with Dynamics 365 Business Central to perform automated testing. We’ll begin with a quick introduction to automated testing, followed by an overview of test automation in Dynamics 365 Business Central. Then you’ll learn to design and build automated tests and we’ll go through some efficient methods to get from requirements to application and testing code. Lastly, you’ll learn to incorporate your own and Microsoft tests into your daily development practice. By the end of the book, you’ll be able to write your own automated tests for Dynamics 365 Business Central.
Table of Contents (17 chapters)
Free Chapter
1
Section 1: Automated Testing - A General Overview
3
Section 2: Automated Testing in Microsoft Dynamics 365 Business Central
6
Section 3: Designing and Building Automated Tests for Microsoft Dynamics 365 Business Central
11
Section 4: Integrating Automated Tests in Your Daily Development Practice

What this book covers

Chapter 1, Introduction to Automated Testing, introduces you to automated testing: why you would want to use it, what it exactly entails, and when you should use it.

Chapter 2, The Testability Framework, elaborates on how Microsoft Dynamics 365 Business Central enables you to run automated tests, and what this so-called Testability Framework actually is by describing its five pillars.

Chapter 3, The Test Tool and Standard Tests, introduces the testing tool that resides in Dynamics 365 Business Central and allows you to run tests. Alongside that, we will discuss the standard tests and test libraries that Microsoft provides with Dynamics 365 Business Central.

Chapter 4, Test Design, discusses a couple of concepts and design patterns that allow you to conceive your tests more effectively and efficiently.

Chapter 5, From Customer Wish to Test Automation - The Basics, teaches you – and allows you to practice, based on a business case – how to get from a customer's requirement to the implementation of automated tests. In this chapter, you will make use of standard test libraries and techniques discussed in the previous chapters. The examples in this chapter will teach you the basics of headless and UI testing, and how to handle a positive-negative test.

Chapter 6, From Customer Wish to Test Automation - Next Level, continues the business case from Chapter 5, From Customer Wish to Test Automation - The Basics, and introduces some more advanced techniques: how to make use of shared fixtures, how to parameterize tests, and how to handle UI elements and hand over variables to these so-called UI handlers.

Chapter 7, From Customer Wish to Test Automation - And Some More, includes two more examples and continues with the same business case from the previous two chapters: how to go about testing a report and how to set up tests for a more complex scenario.

Chapter 8, How to Integrate Test Automation in Daily Development Practice, discusses a number of best practices that might turn out to be beneficial for you and your team in getting test automation up and running in your day-to-day work.

Chapter 9, Getting Business Central Standard Tests Working on Your Code, discusses why you would want to use the standard test collateral Microsoft provides with Dynamics 365 Business Central, and how to fix errors when standard tests fail due to your extension of the standard application.

Appendix A, Test-Driven Development, gives a short description of what Test-Driven Development (TDD) is and points out parts that can be of value to your daily development practices too.

Appendix B, Setting Up VS Code and Using the GitHub Project, pays attention to VS Code and AL development, and the code examples to be found in the repository on GitHub.