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

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.