Microsoft Dynamics 365 Business Central Developer — Question 66
A company has a test application.
A user observes the following error messages when running the test:
• “Unhandled UI: Message”
• “Unhandled UI: Confirm”
You need to resolve the errors.
Which action should you take?
Answer options
- A. Create a separate test codeunit that has Message Handler and Confirm Handler methods.
- B. Create the Message Handler and Confirm Handler methods in the test runner codeunit.
- C. Create a separate test runner codeunit that has Message Handler and Confirm Handler methods.
- D. Create the Message Handler and Confirm Handler methods in the test codeunit.
Correct answer: D
Explanation
The correct answer is D because the Message Handler and Confirm Handler methods should be placed in the test codeunit to manage the unhandled UI errors during the test execution. Options A and C suggest creating separate codeunits, which is unnecessary and doesn't directly address the issue. Option B incorrectly proposes to place the handlers in the test runner, which would not resolve the errors originating from the test codeunit.