Must know something of everything and everything of something!

Use Case Diagrams

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

Use Case Diagrams51Testing软件测试网%hmeEqDV1t j K/E

51Testing软件测试网G*v7o7Pi*a%{

A 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.51Testing软件测试网hXY9\6B7CL0F M

VSxEKx6c051Testing软件测试网I'^ ri2M3e p%l(~~

51Testing软件测试网,wVy/A0EJ

An 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.51Testing软件测试网6iQ Tl`Kt

When to Use: Use Cases Diagrams

51Testing软件测试网L/wd^ t7@;?9U

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. 51Testing软件测试网&A*sD+O;CT

How to Draw: Use Cases Diagrams

51Testing软件测试网 RD7a%l!K1R*G+}

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.51Testing软件测试网C[,t-Z4t0Os

(YV._ZK9A0Start 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软件测试网?eV? x3?nFT

  1. Browse catalog and select items.
  2. Call sales representative.
  3. Supply shipping information.
  4. Supply payment information.
  5. Receive conformation number from salesperson.

EY(_ D/cU0These steps would generate this simple use case diagram:

-{];CYHT+z?&D/d0

6Go%yDV s]051Testing软件测试网3m1s @zM8i

NV|I0^Pr+Px0This 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. 

Qj2oTZ"Agj}0

0R+n c W!JN0From 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软件测试网q0k$BW0Zq+h


相关阅读:

TAG: UML

 

评分:0

我来说两句

日历

« 2024-05-12  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

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

RSS订阅

Open Toolbar