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

Maintaining your test code

Like application code, test code is also code, so handle it as application code should be handled. This means:

  • Test code should be secured by means of a source code management tool, providing you a history of changes and an easy way to revert to any previous state.
  • Test code will most likely need to be updated with any new customer wish, as this will result in a change of the behavior of your solution.
  • Test code most probably needs to be debugged, whether you like it or not, as any coding done by a developer potentially inserts new bugs, in both the application and the test code.
  • Test code should be reviewed to ensure that, like application code, it meets the coding standards.
  • And of course, test code should be stored with the application code to assure they're closely tied and in sync.

Next to this, when allowing other parties to extend your extension, empower them by providing access to your test code, like Microsoft...