Developing Regression Testing Strategy in D365 Finance and Supply Chain

by | Updated April 17, 2020 | Dynamics 365 for Finance and Operations, Dynamics AX

Regression testing encompasses activities aimed at ensuring application updates do not cause existing functionality to be compromised. A regression has occurred when new code interferes with or breaks existing code. An example of this might be the addition of a required field on a screen causing downstream processes (where this field was not previously an input) to stop working.

Regressions can be introduced by ongoing enhancements you are making to your application, ISV updates or by Microsoft OneVersion updates. Microsoft regression tests their updates before they are released, so we usually do not have to worry about testing every new feature they release. In the case of One Version updates, the areas most prone to regressions include customizations and integrations, but you may also choose to regression test areas of medium-high importance to your business even if they are not customized. ISV’s are responsible for ensuring their code is stable with base D365, but if you have made changes that affect the same code areas then this will need regression testing in your system.

In earlier versions of AX2012 or AX2009, updates were mostly limited to hotfixes and occasionally new releases about every 2 years. New releases included numerous new features that required intensive resources to migrate and test and in some cases was treated as a re-implementation rather than an upgrade.

With the advent of Dynamics 365, Microsoft has increased the update cadence to up to 8 per year, of which you only can skip up to 3. This rapid update cadence means we get to enjoy new features more often and limits the number of previous versions that Microsoft must support, freeing up resources to build additional features. The frequent release cadence means that testing must happen more frequently, thus, having a regression testing plan has become more important than ever.

A note on regressions due to enhancements

This document is primarily focused on developing a testing strategy to mitigate risk seen during OneVersion updates. It is assumed that any custom development will be properly evaluated for testing requirements during the design process and that these tests will be executed as part of the release process of that particular effort.

Laying out the testing strategy

The first step to creating regression tests is to identify your testing strategy. This includes identifying and prioritizing critical areas of the application that should be tested every time a code update is applied (either from an ISV or Microsoft OneVersion updates). It is not recommended to create regression tests that cover the entire system; creating and maintaining this number of tests would become burdensome over time, especially as new features are added.

As you identify these areas, categorize and prioritize them. Categorization allows you to narrow down tests that need to be performed based on which areas of the application are changed. For example, if a change is made to the sales order screen you can easily find all test cases that relate to the sales and marketing module.

Prioritization has two functions. One, during test writing it focusing efforts on the more critical tests first, which results in more thorough tests. Second, if there are many tests to execute it could take hours or days for testing to complete. When tests are executed in priority order, issues relating to more important areas are revealed earlier in the process, thus allowing you more time to respond to them.

The areas that we focus on testing are those where there is a high risk of regression or where the consequences of failure are medium to high. Areas that have a high risk of regression include integrations and complex or key customizations. For risk analysis, analyze each area of the application and ask yourself these questions:

  • What could a change to this area have an impact on?
  • How important is a fault in the impacted area? Some examples are:
    • Does this area experience a high volume of transactions?
    • Would sensitive or important information be compromised, particularly if an error would be hard to detect or correct in the production environment (e.g. where a month end process would be the first opportunity to catch an error).
    • Is it governed by regulatory requirements where a regression could result in fines or penalties?
  • Should we test only what has been affected, if so, how much? For example, if the sales order form is changed, should test be executed from sales order creation all the way through invoicing and payment?
    • Only the affected area?
    • Other areas affected?
    • Whole system?

In order to perform this analysis, you need a team of users who are proficient in both the business and the application. After performing this analysis, you may find there are parts of the system where it is not possible to regression test. For example, integrations with an ISV that does not have a test environment. Carefully consider the risk involved and develop a mitigation strategy should problems arise.

Also, ensure that this testing strategy is updated as new customizations are developed.

Develop the tests

Writing regression tests can be done similarly to how UAT tests were written, in fact in many cases the tests can be copied from UAT tests. However, because of the short time frame between deployment from Test to Production, and the reduced testing staff versus during implementation, take care to ensure all outlying scenarios and expected results are properly identified. Writing good software tests is a subject unto its own which we’ll cover later.

Ideally, these tests will be created and tracked in Azure DevOps, however there are many platforms which support software testing.

If automated testing is to be employed, then certain additional techniques must be employed to ensure successful execution which will be covered later this blog series.

Execute the tests

Microsoft has release notes that can be accessed here. These notes detail all the feature and platform changes taking place in each release for the next 2 or 3 updates. Read through this and thoroughly assess whether these changes affect any of the previously identified risk areas.

If you are using DevOps as your test management tool, you can add these tests to a new test plan as soon as the changed features are announced and assign them to the testers. Then when the update is released testing can commence immediately. Test results should be recorded in DevOps and bugs created when failures occur. If any tests fail, your support team should be notified immediately so the update can be paused until a resolution can be found.

D365 Finance & Supply Chain Regression Testing Conclusion

Microsoft Dynamics 365 gives you many unique advantages: the ability to work in the cloud from anywhere, less maintenance of hardware and more frequent feature releases. With the more frequent update cadence, the importance of having a regression testing strategy cannot be overstated. Getting prepared for the inevitable updates should be high on your priority list during implementation to ensure the continuity of your business processes as you receive new features.

Related Posts

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

october

07oct12:00 pm1:00 pmThe Three Paths to Business Central from Dynamics GP

08oct11:00 am12:00 pmConfab with Stoneridge - Livestream - The Vision and Strategy of Microsoft Business Systems

14oct10:00 am10:30 amThe Modern Manufacturer - Managing Complex Cost Modeling

14oct12:00 pm12:30 pmGenerating Custom Inspection or Process Forms

19octAll Day22Stoneridge Connect Fall 2020

22oct11:00 am12:00 pmConfab with Stoneridge - Livestream - Stoneridge Connect Recap

28oct10:00 am10:30 amThe Modern Manufacturer - Engineering Change Management: Introduction of NEW Functionality for Manufacturers Using Dynamics 365

november

11nov10:00 am10:30 amThe Modern Manufacturer - Tears and Trauma of MRP

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X