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...
Suggested Answer

Handling TestRequestPage in Automation

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I have a case of Automation where i have to handle a error on RequestPage ,

   [RequestPageHandler]
    procedure BssiHoldHandlerforBlankField(var BssiAredTrnsferToOnHoldAcc: TestRequestPage BssiAredTrnsferToOnHoldAcc)
    Var

    begin

        BssiAredTrnsferToOnHoldAcc.GBoo_TransferBalance.SetValue(true);
        asserterror BssiAredTrnsferToOnHoldAcc."General Journal Template".SetValue(' ');       =========Have to handle this General Journal Template as Blank
        BssiAssert.ExpectedError(GetLastErrorText());
        BssiAredTrnsferToOnHoldAcc.OK().Invoke();

    end;
Captured.PNG
When we close the Request page an error message is displayed and there is no way through which we can handle this error . I have Tried to handle this error using Assert but i am not able to handle this .
  • Suggested answer
    pankaj.k Profile Picture
    1,020 on at

    Hi Ashutosh,

    Please check the blow URL that will help you to resolve the issue.

    https://ksdconsultancy.blog/2019/01/08/automated-testing-in-business-central/

       

  • Suggested answer
    AshutoshTripathi0312 Profile Picture
    5 on at

    Hi Pankaj

    Thanks for taking a look but there its not Mentioned about Handling The Error of RequestPagehandler.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 768 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 541 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 324 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans