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

To get the most out of this book

This book is an introduction to test automation for Dynamics 365 Business Central. On one hand, various concepts and terminology are discussed, and on the other hand, we will also practice them by coding tests. To get the most out of this book, you might want to practice what is preached by implementing the code examples discussed. As this book, however, does not cover how to program against Business Central, you might first want to read the tips given in Appendix B, Setting Up VS Code and Using the GitHub project.

If your learning style is to start by finding out the principles, terminology, and concepts, start reading Chapter 1, Introduction to Automated Testing, and move slowly into the more practical Section 3: Designing and Building Automated Tests for Microsoft Dynamics 365 Business Central. If your style is more learning by doing, you could dare to take a deep dive into Chapter 5, From Customer Wish to Test Automation - The Basics, Chapter 6, From Customer Wish to Test Automation - Next Level, and Chapter 7, From Customer Wish to Test Automation - And Some More, straight away, and read the various backgrounds later or while working through the chapters.

Download the example code files

You can download the example code files for this book from your account at www.packt.com. If you purchased this book elsewhere, you can visit www.packt.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packt.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Automated-Testing-in-Microsoft-Dynamics-365-Business-Central. In case there's an update to the code, it will be updated on the existing GitHub repository.

Download the color images

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The only step to be taken is to add the following code to the relevant Initialize function."

A block of code is set as follows:

fields
{
field(1; Code; Code[10]){}
field(2; Description; Text[50]){}
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

[FEATURE] LookupValue Customer 
[SCENARIO #0001]
Assign lookup value to customer
[GIVEN] A lookup value
[GIVEN] A customer

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Select System info from the Administration panel."

Warnings or important notes appear like this.
Tips and tricks appear like this.