01.01.2015 Views

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

320<br />

Appendix A<br />

11. We need to know how to start the Use Case. Do we simply say “start” as in selecting<br />

a menu option, or do we trigger an event Does the Use Case start because of<br />

time or because of a state within the system Sometimes the starting mechanism<br />

can tell us whether a Use Case should actually be more than one Use Case.<br />

12. Both define conditions that must be true in order for the Use Case to work properly.<br />

But the Use Case takes on the responsibility for testing the condition defined<br />

in the preconditions, where it does not test the conditions defined in the assumptions.<br />

The Use Case literally assumes that another Use Case has satisfied the<br />

assumption prior to the execution of this Use Case.<br />

13. The dialog is the conversation between the actor/Use Case and the system in the<br />

execution of the Use Case. It describes how they communicate with one another in<br />

order to complete the goal established for the Use Case.<br />

14. They are defined separately mostly for visibility, to make certain that the dialog<br />

has addressed all the possible outcomes. We also define them separately because<br />

some termination options are difficult to describe in textual form (for example,<br />

concurrency options like canceling in the middle of an operation).<br />

15. Typically, you only include what the user would be able to see during his interaction<br />

with the system. So you wouldn’t normally see things like saving items to the<br />

database, closing connections, and so on. But there are always exceptions.<br />

16. A Use Case is a single goal that the system is expected to accomplish. A scenario is<br />

one possible way that the Use Case might execute when it attempts to accomplish<br />

the goal.<br />

17. Scenarios help you define all the functional requirements for the execution of the<br />

Use Case. By doing so, they also provide the basis for a test plan to ensure that the<br />

Use Case can and does work exactly as expected.<br />

18. The Use Case narrative and the Activity diagram illustrating the Use Case narrative<br />

can both be used.<br />

19. Avoid redundancy. Isolate the unique segments of the logic into separate paths<br />

rather than repeat the same series of steps in multiple scenarios. Then to describe<br />

a complete scenario, simply combine and/or repeat the execution of individual<br />

test segments.<br />

20. Use the scenarios as a guide to develop test cases. Taken together, the set of scenarios<br />

for all Use Cases in the system form the basis for your acceptance-level testing.<br />

21. The Class diagram establishes the rules that govern the creation and use of objects.<br />

The Object diagram represents the facts about actual objects. Consequently, the<br />

Object diagram is a valuable tool for testing the accuracy and correctness of the<br />

Class diagram.<br />

22. A constraint is a rule or set of rules that dictate the values that may be assigned<br />

to the attribute.<br />

23. Constraints on an operation typically specify the logic or rules for the proper<br />

execution of the operation.<br />

24. The name compartment includes the name of the class, optionally a stereotype,<br />

and optionally a set of properties (or constraints).<br />

25. No. The <strong>UML</strong> allows you to show or hide as much or as little of the class notation<br />

as you need for the current problem you are working on, though typically you<br />

would always show at least the name compartment.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!