BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft MB-820 Exam - Topic 5 Question 25 Discussion

Posted by Ira on Dec 07, 2024 at 12:29 PM

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?

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.


Get Premium MB-820 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
32 comments · newest first
OL
Olive 12 months ago
Normal attribute seems too basic for this task.
YO
Yoko 12 months ago
Wait, why would you choose Test attribute? Sounds odd.
TY
Tyra 1 year ago
Not so sure about that, Handler method might be better.
MA
Marget 1 year ago
Totally agree, Test attribute is the way to go!
LE
Levi 1 year ago
I think you should use the Test attribute.
JU
Julianna 1 year ago
I definitely recall that the Test attribute is meant for unit tests, so that might be the right choice here.
EL
Elke 1 year 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.
JI
Jin 1 year ago
I remember practicing a similar question where we had to simulate user interactions, and I think a Handler method was involved.
SH
Shawna 1 year 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.
MY
Myrtie 1 year 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.
LO
Louvenia 1 year 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.
LE
Leila 1 year 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.
JO
Johnna 1 year 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.
GO
Golda 1 year 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.
WA
Walker 2 years 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.
JU
Julieta 2 years ago
I'm not sure, but I think Test attribute could also work for this scenario.
RE
Reyes 2 years ago
B) Handler method is the way to go. It's the most flexible and powerful option for testing the posting logic.
BR
Brittni 2 years ago
↳ replying to Reyes
Handler method
EL
Elina 2 years ago
↳ replying to Reyes
Ship & Invoice
DE
Devora 2 years ago
↳ replying to Reyes
Invoice
CA
Carey 2 years ago
↳ replying to Reyes
Ship
RO
Robt 2 years ago
Hmm, I'm not sure. Maybe A) Normal attribute? That seems like the simplest approach, but I could be wrong.
GE
German 2 years ago
Definitely C) Test attribute. That's the way to mark your test codeunit and make it run as part of the test suite.
ME
Melvin 2 years ago
↳ replying to German
Yes, using Test attribute will help mark the test codeunit and include it in the test suite.
TA
Tanja 2 years ago
↳ replying to German
I agree, C) Test attribute is the way to go for running test codeunits.
LE
Lelia 2 years ago
I agree with Millie, a Handler method would be the best choice.
PA
Patrick 2 years 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.
OD
Odette 2 years ago
↳ replying to Patrick
B) Handler method
LO
Louvenia 2 years ago
↳ replying to Patrick
C) Test attribute
AL
Allene 2 years ago
↳ replying to Patrick
B) Handler method
AL
Alyce 2 years ago
↳ replying to Patrick
A) Normal attribute
MI
Millie 2 years ago
I think we should use a Handler method for this.
0/2000 characters

Save Cancel