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 MB-820 Exam - Topic 5 Question 25 Discussion

You must simulate the user interaction of selecting a posting option. The options must include:* Ship* Invoice* Ship & InvoiceYou need to create a test codeunit to run the test.What should you use?
B) Handler method
A) Normal attribute
C) Test attribute

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
8 months ago
Normal attribute seems too basic for this task.
upvoted 0 times
...
Yoko
9 months ago
Wait, why would you choose Test attribute? Sounds odd.
upvoted 0 times
...
Tyra
9 months ago
Not so sure about that, Handler method might be better.
upvoted 0 times
...
Marget
9 months ago
Totally agree, Test attribute is the way to go!
upvoted 0 times
...
Levi
9 months ago
I think you should use the Test attribute.
upvoted 0 times
...
Julianna
10 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
10 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
10 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
10 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
10 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
10 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
10 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
10 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
10 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
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.
upvoted 0 times
...
Julieta
2 years ago
I'm not sure, but I think Test attribute could also work for this scenario.
upvoted 0 times
...
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.
upvoted 0 times
Brittni
2 years ago
Handler method
upvoted 0 times
...
Elina
2 years ago
Ship & Invoice
upvoted 0 times
...
Devora
2 years ago
Invoice
upvoted 0 times
...
Carey
2 years ago
Ship
upvoted 0 times
...
...
Robt
2 years 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 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.
upvoted 0 times
Melvin
2 years ago
Yes, using Test attribute will help mark the test codeunit and include it in the test suite.
upvoted 0 times
...
Tanja
2 years ago
I agree, C) Test attribute is the way to go for running test codeunits.
upvoted 0 times
...
...
Lelia
2 years ago
I agree with Millie, a Handler method would be the best choice.
upvoted 0 times
...
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.
upvoted 0 times
Odette
2 years ago
B) Handler method
upvoted 0 times
...
Louvenia
2 years ago
C) Test attribute
upvoted 0 times
...
Allene
2 years ago
B) Handler method
upvoted 0 times
...
Alyce
2 years ago
A) Normal attribute
upvoted 0 times
...
...
Millie
2 years ago
I think we should use a Handler method for this.
upvoted 0 times
...

Save Cancel