Please wait
Talk to Expert
Microsoft Dynamics Business central

How does page scripting help in our day to day work

Banner- Page Scripting

Introduction:

Microsoft Dynamics 365 Business Central introduced the new feature Page Scripting in its 2024 release Wave 1. This tool is designed to enhance User Acceptance Testing (UAT) by allowing users to actively use it.

What is page Scripting?

The page scripting tool in the business central web client lets you record your interactions with the user interface (UI), such as opening pages, selecting actions, filling in fields, and so on.

You can then replay the recording to automatically replicate the same actions in the UI that you performed during the recording. As you replay the recording, you receive real-time status feedback on whether an action succeeds or fails.

A primary use of the page scripting tool is testing business processes and scenarios in the application and validating they continue to work as expected after changes or updates. People often refer to this testing as user acceptance testing (UAT).

The page scripting tool makes testing easier and faster because it eliminates the need to go through each scenario in the UI manually.

How to start page scripting?

For start page scripting: Settings -> Page scripting (Preview)

There are two ways to start page scripting.
1. Using the Start New button.
2. Using New Recoding action.

Example:

Let’s start a new recording. In this, we are going to create a sales order and post that sales order. We can record that process and then we play it again. When we play again it will create a sales order and post it automatically using script recording (Do the same process automatically.).

Open the sales order list page and create a new sales order and add all details. you can see the steps that you do to make a sales order.

As you can see our sales order is created. Now released the document.

Now, post the sales order. And then open the posted sales document.

Now close the document. Return to the role canter page, and then stop the recording.

To stop recoding click on the stop icon. You can see in above image.
To again start recoding click on red circle.

You can save the recording on your local machine. The saved recording is a YAML file that can be downloaded, shared, edited, and reopened for playback.

You can also share this file in teams with anyone.

You can share the recording link directly with anyone. The link includes the full recording along with the results that occurred during playback.

You can also share this link in teams with anyone.

You can directly play the recording to do the same steps again. For that click on the play button.

For open shared files Click on open recoding.

Let’s open our saved recording file.

Once the recording is opened, you can see all the steps.

Now play the recording by clicking on the play button. It will execute every recorded step.

Output:

You can also receive acknowledgment of successful execution or any errors in any step.

NOTES:

  1. This is a production-ready preview feature.
  2. To record, your user account must have the PAGESCRIPTING – REC permission set or equivalent permissions.
  3. To play back a recording, your user account must have the PAGESCRIPTING – PLAY permission set or equivalent permissions.

 

If you’re curious about how we can assist you in reaching your goals, don’t hesitate to get in touch. Our dedicated team is ready to provide support every step of the way.

Let’s turn your vision into reality together!


Comments