Deal of The Day! 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
1 months 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
2 months ago
I'm not sure, but I think Test attribute could also work for this scenario.
upvoted 0 times
...
Reyes
2 months 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
Brittni
16 days ago
Handler method
upvoted 0 times
...
Elina
21 days ago
Ship & Invoice
upvoted 0 times
...
Devora
24 days ago
Invoice
upvoted 0 times
...
Carey
1 months ago
Ship
upvoted 0 times
...
...
Robt
2 months 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
2 months 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
1 months ago
Yes, using Test attribute will help mark the test codeunit and include it in the test suite.
upvoted 0 times
...
Tanja
1 months ago
I agree, C) Test attribute is the way to go for running test codeunits.
upvoted 0 times
...
...
Lelia
2 months ago
I agree with Millie, a Handler method would be the best choice.
upvoted 0 times
...
Patrick
2 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
Odette
1 months ago
B) Handler method
upvoted 0 times
...
Louvenia
2 months ago
C) Test attribute
upvoted 0 times
...
Allene
2 months ago
B) Handler method
upvoted 0 times
...
Alyce
2 months ago
A) Normal attribute
upvoted 0 times
...
...
Millie
2 months ago
I think we should use a Handler method for this.
upvoted 0 times
...

Save Cancel