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
Q51Testing软件测试网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:j0When 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"AuUse 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']2jD051Testing软件测试网eT#K3Tq-B;o.YCpStart 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
- Browse catalog and select items.
- Call sales representative.
- Supply shipping information.
- Supply payment information.
- Receive conformation number from salesperson.
51Testing软件测试网s7[)N?.S
s0JThese steps would generate this simple use case diagram:51Testing软件测试网dT2{H!u$X}:A'A
M8jn}\t0
T!g!rP-l6rOW051Testing软件测试网7Cm7eY#y3GThis 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&NRo7{;}7q!x C"u051Testing软件测试网/ez}y.l#_
PvFrom 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