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

- Free Preparation Discussions

Microsoft MB-820 Exam - 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:

0/2000 characters
Olive
3 months ago
Normal attribute seems too basic for this task.
upvoted 0 times
...
Yoko
3 months ago
Wait, why would you choose Test attribute? Sounds odd.
upvoted 0 times
...
Tyra
3 months ago
Not so sure about that, Handler method might be better.
upvoted 0 times
...
Marget
4 months ago
Totally agree, Test attribute is the way to go!
upvoted 0 times
...
Levi
4 months ago
I think you should use the Test attribute.
upvoted 0 times
...
Julianna
4 months ago
I definitely recall that the Test attribute is meant for unit tests, so that might be the right choice here.
upvoted 0 times
...
Elke
4 months ago
I’m a bit confused about the options. I feel like the Normal attribute could be relevant, but it doesn’t seem specific enough for testing.
upvoted 0 times
...
Jin
4 months ago
I remember practicing a similar question where we had to simulate user interactions, and I think a Handler method was involved.
upvoted 0 times
...
Shawna
5 months ago
I think we might need to use the Test attribute for this, but I'm not entirely sure how it works in this context.
upvoted 0 times
...
Myrtie
5 months ago
I think the Test attribute is the way to go here. It'll allow me to create a test codeunit that can simulate the user selecting the different posting options and verify that the system is behaving as expected. I feel pretty confident about this one.
upvoted 0 times
...
Louvenia
5 months ago
This is a tricky one. I'm not sure if a normal attribute would be enough to handle the user interaction, or if we need to use a handler method. I'll have to review the documentation on testing user interactions to make sure I'm approaching this the right way.
upvoted 0 times
...
Leila
5 months ago
Okay, I've got this. The key here is to create a test codeunit that can simulate the user selecting the different posting options. I'd go with the Test attribute to set up the test case and then use some assertions to verify the expected behavior.
upvoted 0 times
...
Johnna
5 months ago
I'm a bit unsure about this one. Do we need to use a handler method to simulate the user interaction? Or would a normal attribute work just as well? I'll have to think this through carefully.
upvoted 0 times
...
Golda
5 months ago
Hmm, this looks like a pretty straightforward test case. I think I'll go with option C - Test attribute. That seems like the most logical choice to create a test codeunit.
upvoted 0 times
...
Walker
1 year 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
1 year ago
I'm not sure, but I think Test attribute could also work for this scenario.
upvoted 0 times
...
Reyes
1 year 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
1 year ago
Handler method
upvoted 0 times
...
Elina
1 year ago
Ship & Invoice
upvoted 0 times
...
Devora
1 year ago
Invoice
upvoted 0 times
...
Carey
1 year ago
Ship
upvoted 0 times
...
...
Robt
1 year 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
1 year 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 year ago
Yes, using Test attribute will help mark the test codeunit and include it in the test suite.
upvoted 0 times
...
Tanja
1 year ago
I agree, C) Test attribute is the way to go for running test codeunits.
upvoted 0 times
...
...
Lelia
1 year ago
I agree with Millie, a Handler method would be the best choice.
upvoted 0 times
...
Patrick
1 year 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 year ago
B) Handler method
upvoted 0 times
...
Louvenia
1 year ago
C) Test attribute
upvoted 0 times
...
Allene
1 year ago
B) Handler method
upvoted 0 times
...
Alyce
1 year ago
A) Normal attribute
upvoted 0 times
...
...
Millie
1 year ago
I think we should use a Handler method for this.
upvoted 0 times
...

Save Cancel