Must know something of everything and everything of something!

Use Case Diagrams

上一篇 / 下一篇  2007-03-30 15:22:48 / 个人分类:Testing

Use Case Diagrams51Testing软件测试网.Ek wV0m

!?2L B?oH1k0A use case is a set of scenarios that describing an interaction between a user and a system.  A use case diagram displays the relationship among actors and use cases.  The two main components of a use case diagram are use cases and actors.

}9s||5I[{ au~051Testing软件测试网%I1e!@O@E/}D Q

51Testing软件测试网n!W#G"F c$qv

7|7r/Ot$NS^fY0An actor is represents a user or another system that will interact with the system you are modeling.  A use case is an external view of the system that represents some action the user might perform in order to complete a task.

#y\!O6O;jH#L:j0

When to Use: Use Cases Diagrams

51Testing软件测试网*@PY;@3T$Emt_

Use cases are used in almost every project.  The are helpful in exposing requirements and planning the project. During the initial stage of a project most use cases should be defined, but as the project continues more might become visible. 

7\] ea6OBn8O:S0

How to Draw: Use Cases Diagrams

51Testing软件测试网.[ AQ2EV,S"Au

Use cases are a relatively easy UML diagram to draw, but this is a very simplified example.  This example is only meant as an introduction to the UML and use cases.  If you would like to learn more see theResourcespage for more detailed resources on UML.

&J:i7jd;b5N']2j D051Testing软件测试网eT#K3Tq-B;o.YCp

Start by listing a sequence of steps a user might take in order to complete an action.  For example a user placing an order with a sales company might follow these steps. 51Testing软件测试网[8D^ l"GG.cf

  1. Browse catalog and select items.
  2. Call sales representative.
  3. Supply shipping information.
  4. Supply payment information.
  5. Receive conformation number from salesperson.
51Testing软件测试网 s7[)N?.S s0J

These steps would generate this simple use case diagram:51Testing软件测试网dT2{H!u$X }:A'A

M8jn}\t0

T!g!rP-l6rOW051Testing软件测试网7C m7eY#y3G

This example shows the customer as a actor because the customer is using the ordering system.  The diagram takes the simple steps listed above and shows them as actions the customer might perform.  The salesperson could also be included in this use case diagram because the salesperson is also interacting with the ordering system. 

#HE4Q&N Ro7{;}7q!xC"u051Testing软件测试网/ez}y.l#_ Pv

From this simple diagram the requirements of the ordering system can easily be derived.  The system will need to be able to perform actions for all of the use cases listed.  As the project progresses other use cases might appear.  The customer might have a need to add an item to an order that has already been placed.  This diagram can easily be expanded until a complete descrīption of the ordering system is derived capturing all of the requirements that the system will need to perform.51Testing软件测试网Z!Z)c2skhCc


相关阅读:

TAG: UML

 

评分:0

我来说两句

日历

« 2024-04-19  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 76789
  • 日志数: 93
  • 建立时间: 2007-03-22
  • 更新时间: 2007-12-31

RSS订阅

Open Toolbar