This post is part of the New Functionality In Microsoft Dynamics 365 Business Central 2024 Wave 2 series in which I am taking a look at the new functionality introduced in Microsoft Dynamics 365 Business Central 2024 Wave 2.
The 14th of the new functionality in the section is run page scripts in pipelines for automated testing.
In 2024 release wave 1 Microsoft launched the page scripting tool as a preview. One of the most common feedback requests from partners since then has been to enable support for replaying captured page scripts in CI/CD (continuous integration and continuous deployment) pipelines for automated testing. In 2024 release wave 2, Microsoft are enabling exactly this capability by providing a stand-alone page script replayer for use in CI/CD pipelines.
Enabled for: Admins, makers, marketers, or analysts, automatically
Public Preview: Oct 1, 2024
General Availability: Oct 1, 2024
Feature Details
To run page scripts in your own pipelines, you can now use the stand-alone bc-replay script player. This script player is distributed as an npm (Node Package Manager) package. You can install the latest version of the package from the npm feed. No setup is required. Just run this command: npm install @microsoft/bc-replay --save
You can find more details on requirements, setup, and parameters at bc-replay npm package page.
Microsoft plan to provide support as part of AL-Go for GitHub at a later point, so that if you are using AL-Go for GitHub, you can get started faster setting up a pipeline. However, if you are using a different CI/CD agent and environment, you can create your own pipeline setups.