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

Notifications

Announcements

No record found.

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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans