nerdexam
Microsoft

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

Develop by using AL

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)
  • A
    14% (5)
  • B
    3% (1)
  • C
    9% (3)
  • D
    74% (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

#test codeunit#UI handlers#Message Handler#Confirm Handler

Community Discussion

No community discussion yet for this question.

Full MB-820 Practice