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…
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)- A3% (1)
- B9% (3)
- C3% (1)
- D86% (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
Community Discussion
No community discussion yet for this question.