Hi,
Can anyone guide me how can I test notifications that appear on Role Center Page through automated testing?
After Notification.send() is called nothing happens next. Is there any way that I can catch the notification message ?
thanks
You could also extract all the zip files from test toolkit for baseapp from DVD.
These are in this directory
\applications\BaseApp\test
When you have all of them extracted, you could search in VS Code for SendNotificationHandler
and be inspired by the code written by Microsoft in these test codeunits.
Below just a screenshot snippet
and just an example with codeunit 138961 "BC O365 Payment Tests"
you can try HandlerFunctions
When developing automated tests, there are external UI actions unavailable.
Notifications, might be an example. After SEND, the notification is displayed in the UI and if these has been specified with an action (ADDACTION) then users might have or not performed the action to click into the link.
This action is a UI action like, e.g. invoking an external dialog to upload a file, and test toolkit should not be able to catch it.
Maybe you could think of adding another separate testing module to mimic the action that would have been performed with the ADDACTION. That is the only solution that I could see, personally.
Sohail Ahmed
953
YUN ZHU
921
Super User 2025 Season 1
Mansi Soni
602