Book Image

Automated Testing in Microsoft Dynamics 365 Business Central - Second Edition

Book Image

Automated Testing in Microsoft Dynamics 365 Business Central - Second Edition

Overview of this book

Dynamics 365 Business Central is a cloud-based SaaS ERP proposition from Microsoft. With development practices becoming more formal, implementing changes or new features is not as simple as it used to be back when Dynamics 365 Business Central was called Navigator, Navision Financials, or Microsoft Business Solutions-Navision, and the call for test automation is increasing. This book will show you how to leverage the testing tools available in Dynamics 365 Business Central to perform automated testing. Starting with a quick introduction to automated testing and test-driven development (TDD), you'll get an overview of test automation in Dynamics 365 Business Central. You'll then learn how to design and build automated tests and explore methods to progress from requirements to application and testing code. Next, you'll find out how you can incorporate your own as well as Microsoft tests into your development practice. With the addition of three new chapters, this second edition covers in detail how to construct complex scenarios, write testable code, and test processes with incoming and outgoing calls. By the end of this book, you'll be able to write your own automated tests for Microsoft Business Central.
Table of Contents (22 chapters)
1
Section 1: Automated Testing – A General Overview
4
Section 2:Automated Testing in Microsoft Dynamics 365 Business Central
7
Section 3:Designing and Building Automated Tests for Microsoft Dynamics 365 Business Central
12
Section 4:Integrating Automated Tests in Your Daily Development Practice
15
Section 5:Advanced Topics
19
Section 6:Appendix

Learning and improving by taking small steps

You get to master test automation one step at a time. Learn and improve by doing the following:

  • Choose one of the when-to-use-automated-testing options as discussed in Chapter 1, Introduction to Automated Testing, that fits you and your team best, and/or gives the best return on investment, to start mastering test automation.
  • Start casting the customer wish into the scenarios that come to mind. Try to keep it simple. Preferably, you would like to get full coverage right away, but as it is a team effort, chances are high that holes will be identified before implementation starts. And if they will not be seen, chances are even bigger that you will hit upon these holes when starting to implement the code.
  • Make use of my 4-steps recipe (create, embed, write, and construct) for the conception of the test code. Let the ATDD.TestScriptor module and/or extension make this work even more efficient.
  • Get the test(s) run with every...