web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to Automate UI Test Wizard Page?

(0) ShareShare
ReportReport
Posted on by 25

Hi,

I was trying to test a Wizard Page, but started encountering an error that was not present when I do the same steps UI. After discussing with the extension developers on a call, we determined that when a Page has a PageType of "NavigatePage" and is called through Test Automation, all the OnInit and OnOpen triggers run when I Invoke() the TestPage, even for the page parts not visible on the Wizard. When opening the Wizard through the UI, the OnInit and OnOpen page triggers will only run for the page part currently being displayed. This inconsistency between the TestPage and the Page in UI makes it impossible to test the functionality as intended.

Anyone has experience testing Wizard type pages with multiple steps (aka "NavigatePage"). Is there something I can do to prevent the OnInit and OnOpen pages triggers of the the page parts from firing during Inoke()?

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

  • Verified answer
    Angela Li Profile Picture
    25 on at

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,012 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 986 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 659 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans