ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 80 - MB-820 discussion

Report
Export

You must simulate the user interaction of selecting a posting option. The options must include:

* Ship

* Invoice

* Ship & Invoice

You need to create a test codeunit to run the test.

What should you use?

A.

Normal attribute

Answers
A.

Normal attribute

B.

Handler method

Answers
B.

Handler method

C.

Test attribute

Answers
C.

Test attribute

Suggested answer: B

Explanation:

Handler methods are used in tests to simulate user interactions, such as responding to dialogs, confirmation messages, or option selections. Since you need to simulate the user interaction of selecting a posting option (Ship, Invoice, Ship & Invoice), a Handler method would be the appropriate choice for capturing this kind of user input.

Normal attribute and Test attribute are used for marking methods for test execution, but they do not simulate user interaction, making Handler method the correct answer.

For more details, see the Microsoft Docs on Test Codeunits and Handler Methods.

asked 13/10/2024
Mohamed Nacer Ferhi
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first