Must know something of everything and everything of something!
Use Case Diagrams
上一篇 /
下一篇 2007-03-30 15:22:48
/ 个人分类:Testing
Use Case Diagrams51Testing软件测试网%hmeEqDV1tj
K/E
51Testing软件测试网G*v7o7P i*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\6B7CL0FM
VSxEKx6c051Testing软件测试网I'^ri2M3ep%l(~~
51Testing软件测试网,wVy/A0EJAn 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软件测试网6iQTl`Kt
When to Use: Use Cases Diagrams
51Testing软件测试网L/wd^ t7@;?9UUse 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
- Browse catalog and select items.
- Call sales representative.
- Supply shipping information.
- Supply payment information.
- Receive conformation number from salesperson.
EY(_ D/cU0These steps would generate this simple use case diagram:
-{];CYHT+z?&D/d06Go%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"Ag j}00R+ncW!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