New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam MB-820 Topic 5 Question 25 Discussion

Actual exam question for Microsoft's MB-820 exam
Question #: 25
Topic #: 5
[All MB-820 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

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.


Contribute your Thoughts:

Walker
8 days ago
I think Test attribute might not be the best option here, as we need more control over the process. I would go with a Handler method.
upvoted 0 times
...
Julieta
16 days ago
I'm not sure, but I think Test attribute could also work for this scenario.
upvoted 0 times
...
Reyes
18 days ago
B) Handler method is the way to go. It's the most flexible and powerful option for testing the posting logic.
upvoted 0 times
Carey
3 days ago
Ship
upvoted 0 times
...
...
Robt
21 days ago
Hmm, I'm not sure. Maybe A) Normal attribute? That seems like the simplest approach, but I could be wrong.
upvoted 0 times
...
German
22 days ago
Definitely C) Test attribute. That's the way to mark your test codeunit and make it run as part of the test suite.
upvoted 0 times
Melvin
20 hours ago
Yes, using Test attribute will help mark the test codeunit and include it in the test suite.
upvoted 0 times
...
Tanja
6 days ago
I agree, C) Test attribute is the way to go for running test codeunits.
upvoted 0 times
...
...
Lelia
29 days ago
I agree with Millie, a Handler method would be the best choice.
upvoted 0 times
...
Patrick
1 months ago
I think the correct answer is B) Handler method. This allows you to create a test method that can intercept and handle the posting logic.
upvoted 0 times
Louvenia
16 days ago
C) Test attribute
upvoted 0 times
...
Allene
17 days ago
B) Handler method
upvoted 0 times
...
Alyce
22 days ago
A) Normal attribute
upvoted 0 times
...
...
Millie
1 months ago
I think we should use a Handler method for this.
upvoted 0 times
...

Save Cancel