nerdexam
Microsoft

MB-820 · Question #115

You ate creating a test codeumt for a company that uses Business Central. The company requites the following list of choices while posting a sales order: - Ship - Invoice - Ship & Invoice You must…

The correct answer is D. StrMenu Handler. StrMenuHandler is used to simulate the selection of an option from a string-based menu, such as the "Ship," "Invoice," or "Ship & Invoice" options when posting a sales order. This handler allows you to programmatically select an option during automated testing. Other handlers…

Develop by using AL

Question

You ate creating a test codeumt for a company that uses Business Central. The company requites the following list of choices while posting a sales order:

  • Ship
  • Invoice
  • Ship & Invoice

You must create a test codeunit that automatically selects one of these options. You need to create the test codeunit. Which handler should you use?

Options

  • ASession Settings Handle
  • BSend Notification Handler
  • CRecall Notification Handler
  • DStrMenu Handler

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    9% (3)
  • C
    3% (1)
  • D
    86% (30)

Explanation

StrMenuHandler is used to simulate the selection of an option from a string-based menu, such as the "Ship," "Invoice," or "Ship & Invoice" options when posting a sales order. This handler allows you to programmatically select an option during automated testing. Other handlers, such as SessionSettingsHandler or SendNotificationHandler, do not simulate the selection of menu choices, which is specifically required in this scenario.

Topics

#test codeunit#StrMenu Handler#UI testing#handlers

Community Discussion

No community discussion yet for this question.

Full MB-820 Practice