12.07.2015 Views

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DEV475</strong> <strong>Mastering</strong> <strong>Object</strong>-<strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>What Is a Scenario?What Is a Scenario?• A scenario is an instance of a use case.<strong>Mastering</strong> <strong>Object</strong> <strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>Copyright © 2003 Rational Software, all rights reserved 16A scenario is an instance of a use case. It is one flow through a use case.Each use case has a web of flow of events <strong>with</strong> a scenario being an instance of aparticular flow of events. The scenario may involve the basic flow <strong>and</strong> any number ofalternative flows in any number of combinations.In the example, the bold lines highlight some possible scenarios for the basic <strong>and</strong>alternative flows previously described.How many scenarios are needed?As many as one needs to underst<strong>and</strong> the system being developed. You mustelaborate the scenarios of the interesting <strong>and</strong> high-risk use cases. Scenarios can beused to underst<strong>and</strong>, as well as to validate, the use-case flows of events. Some peoplewrite scenarios first <strong>and</strong> extract use cases, while others find use cases first <strong>and</strong> validatethose use cases by writing scenarios.Scenarios make excellent test cases.3 - 16

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

Saved successfully!

Ooh no, something went wrong!