MB-820 · Question #100
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…
The correct answer is D. Create the Message Handler and Confirm Handler methods in the test codeunit. A test method can only call handler methods that are defined in the same test codeunit as the test https://learn.microsoft.com/en-us/dynamics365/business-central/dev- itpro/developer/attributes/devenv-handlerfunctions-attribute
Question
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?
Options
- ACreate a separate test codeunit that has Message Handler and Confirm Handler methods.
- BCreate the Message Handler and Confirm Handler methods in the test runner codeunit.
- CCreate a separate test runner codeunit that has Message Handler and Confirm Handler methods.
- DCreate the Message Handler and Confirm Handler methods in the test codeunit.
How the community answered
(35 responses)- A14% (5)
- B3% (1)
- C9% (3)
- D74% (26)
Explanation
A test method can only call handler methods that are defined in the same test codeunit as the test https://learn.microsoft.com/en-us/dynamics365/business-central/dev- itpro/developer/attributes/devenv-handlerfunctions-attribute
Topics
Community Discussion
No community discussion yet for this question.