1、简答题
- 用例的概念Use is a collection of related success and failure scenarios that describe an actor using a system to support a goal.
- 用例和场景的关系?什么是主场景或 happy path?
Scenario A use case represents a collection of scenarios: primary, plus zero or more alternates. The primary scenariocorresponds to the main system interactions, usually the ‘success’ scenario. Alternate scenarios correspond to less frequent interactions and exceptions. - 用例有哪些形式?
- Brief(high level) :Terse one-paragraph summary, usually of the main success scenario. During early requirements analysis, to get a quick sense of subject and scope.May take onlya few minutesto create.
- Casual(简便格式): Informal paragraph format. Multiple paragraphs that cover various scenarios.
- Fully :dressed All steps and variations are written in detail, and there are supportingsections,such as preconditionsand successguarantees.
- 对于复杂业务,为什么编制完整用例非常难?
场景多,用例复杂 - 什么是用例图?
Use case diagram is an excellent pictureof the system context; It makes a good context diagram Showing the boundary of a system, what lies outside of it, and how it gets used. It serves as a communication tool that summarizes the behavior of a system and its actors. - 用例图的基本符号与元素?
用例图包6个元素,参与者,用例,关联关系,包含关系,扩展关系,泛化关系。
- 用例图的画法与步骤
- 确定参与者
(1)谁将使用该系统的主要功能。
(2)谁将需要该系统的支持以完成其工作。
(3)谁将需要维护、管理该系统,以及保持该系统处于工作状态。
(4)系统需要处理哪些硬件设备。
(5)与该系统那个交互的是什么系统。
(6)谁或什么系统对本系统产生的结果感兴趣。 - 识别用例 从分析系统的参与者开始,考虑每一个参与者是如何使用系统的。
- 识别用例间的关系
(1)关联关系
(2)包含关系
(3)扩展关系
(4)泛化关系
- 用例图给利益相关人与开发者的价值有哪些?
- Use case diagram is an excellent pictureof the system context; It makes a good context diagram Showing the boundary of a system, what lies outside of it, and how it gets used. It serves as a communication tool that summarizes the behavior of a system and its actors.
-
因为相似系统的参与者,用例和用例间关系相似。
-
添加新的用例与系统,例如让顾客选择沐浴露和洗发露类型,以及早餐定做等等。在添加新的用例时,用例图用鲜艳的颜色来标定。
-
在添加创新的用例和系统时,用例图用鲜艳的颜色来标定。
-
电影订票 backlog
ID | Name | Imp | Est | How to demo |
---|---|---|---|---|
1 | Select City | 50 | 2 | 选择城市,显示城市 |
2 | Select Movie | 100 | 4 | 选择电影,地点,时间,位置,显示订票信息 |
3 | Payment | 30 | 1 | 用户支付30元,看用户存款减少30元 |
- 电影订票项目用例点的估算
用例 | #事务 | #计算 | 原因 | UC 权重 |
---|---|---|---|---|
Select City | 2 | 1 | 简单 | |
Select Movie | 4 | 4 | 平均 | |
Payment | 1 | 1 | 简单 |