Skip to main content

Notifications

Announcements

No record found.

Acceptance Test Library (ATL) for validation testing in Microsoft Dynamics 365 Finance and Operations One version

Acceptance Test Library (ATL) for validation testing in Microsoft Dynamics 365 Finance and Operations One version

Available in from May 2019 in PU26, application version 10.0.2

MFP calls it the best feature for developer in X++

 

Wondering to leverage classes which are used internally by Microsoft to test the code? This is it.

So if you want to skip UI and directly debug the code, ATL is the way.

 

ATL is suggested to be best used for data setup testing as well as validation testing of integration and components.

In some scenarios could be used for unit tests.

 

Let us now explore what this library offers us benefits:

  • It lets you create consistent test data.
  • It increases the readability of test code.
  • It provides improved discoverability of the methods that are used to create test data.
  • It hides the complexity of setting up prerequisites.
  • It supports high performance of test cases.

 

 

Decoding what the internal mechanics are need to break the classes used as below

  • Navigation – Discover entities and test data methods in a familiar hierarchy.
  • Test data methods – These methods are used to set up test data.
  • Entities – Entities represent data and associated behavior that is perceived as a single unit.
  • Creators – Creators let you create specific test data by providing fluent application programming interfaces (APIs)
  • Commands – Commands run business operations.
  • Queries – Queries find entities.
  • Specifications – Specifications describe expected entities at the end of the test.

 

 

 

So if you are keen to make a test repeatable and without going through several regressions than ATL is way to go.

 

 

References:

https://docs.microsoft.com/en-gb/dynamics365/unified-operations/dev-itpro/perf-test/acceptance-test-library

https://community.dynamics.com/365/financeandoperations/b/mfp/archive/2019/04/10/acceptance-test-library-the-introduction

Happy D365FO

Comments

*This post is locked for comments