Skip to content

Commit

Permalink
Merge pull request #2043 from CodingOfHui/master
Browse files Browse the repository at this point in the history
#6 #497 实验六:交互建模
  • Loading branch information
zengsn authored Apr 2, 2020
2 parents ebf41c2 + 017a3fe commit 783d972
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 21 deletions.
39 changes: 18 additions & 21 deletions students/1714080902605/lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@
用例名称 | 提交房源 |
前置条件 | 用户身份为房东 | *可选*
后置条件 | | *可选*
基本流程 | 1. 房东点击新增房源按钮; |*用例执行成功的步骤*
~| 2. 系统检查用户身份认证为房东; |
~| 3. 系统显示房源填写页面; |
~| 4. 房东输入房源名称和描述,点击确认按钮; |
~| 5. 系统检查房源名称和描述; |
~| 6. 系统保存新增信息; |
~| 7. 页面显示房源添加成功; |
扩展流程 | 2.1 系统检查用户身份认证不为房东,提示无权进行操作; |*用例执行失败*
~| 5.1 系统检查房源名称和描述为空,提示按要求填写; |
基本流程 | 1. 系统显示房源填写页面; |*用例执行成功的步骤*
~| 2. 房东输入房源描述,点击确认按钮; |
~| 3. 系统检查房源描述; |
~| 4. 系统保存新增房源; |
~| 5. 系统显示房源添加成功; |
扩展流程 | 3.1 系统检查房源描述为空,提示按要求填写; |*用例执行失败*




Expand All @@ -58,13 +56,12 @@
用例名称 | 获取房源 |
前置条件 | 用户身份为买家 | *可选*
后置条件 | | *可选*
基本流程 | 1. 买家点击搜索按钮; |*用例执行成功的步骤*
~| 2. 系统显示买家需求选择页面; |
~| 3. 买家点击需求选择框,点击提交按钮; |
~| 4. 系统检查买家需求选择; |
~| 5. 系统检索房源数据; |
~| 6. 系统显示房源页面; |
扩展流程 | 4.1 系统检查买家无需求选择,提醒至少选择1项; |*用例执行失败*
基本流程 | 1. 系统显示房源选择页面; |*用例执行成功的步骤*
~| 2. 买家点击房源选择,点击提交按钮; |
~| 3. 系统检查买家房源选择; |
~| 4. 系统检索房源; |
~| 5. 系统显示房源; |
扩展流程 | 3.1 系统检查买家无房源选择,提醒至少选择1项; |*用例执行失败*



Expand All @@ -79,11 +76,11 @@
~| 2. 买家点击加入订单按钮; |
~| 3. 系统检查房源有效; |
~| 4. 系统显示订单页面; |
~| 5. 买家填写个人信息,点击确定订单按钮; |
~| 6. 系统检查用户个人信息填写正确; |
~| 7. 系统保存订单; |
~| 8. 系统显示订单提交成功页面; |
~| 5. 买家填写个人信息,点击确定按钮; |
~| 6. 系统检查信息填写正确; |
~| 7. 系统保存个人信息和订单; |
~| 8. 系统显示订单提交成功; |
扩展流程 | 3.1 系统检查房源无效,提示该房源已过期,请重新选择; |*用例执行失败*
~| 6.1 系统检查用户个人信息填写有误,提示按照要求填写; |
~| 6.1 系统检查信息填写有误,提示按照要求填写; |


35 changes: 35 additions & 0 deletions students/1714080902605/lab6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 实验六:交互建模

## 一、实验目标

1. 理解系统交互
2. 学会UML顺序图的画法

## 二、实验内容

1. 根据用例模型和类模型,确定功能所涉及的对象
2. 画参与者(对象)
3. 画消息(交互)

## 三、实验步骤

1. 从实验二的用例图中找到主要参与者
2. 从实验室四的类图中找到其他参与者
3. 新建顺序图
4. 添加lifeline,根据参与者命名
5. 从实验三的活动图找到交互
6. 用message表示参与者的交互情况

## 四、实验结果

![顺序图](./提交房源顺序图.jpg)

图1、提交房源顺序图

![顺序图](./获取房源顺序图.jpg)

图2、获取房源顺序图

![顺序图](./提交订单顺序图.jpg)

图3、提交订单顺序图
Binary file modified students/1714080902605/提交房源.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added students/1714080902605/提交房源顺序图.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified students/1714080902605/提交订单.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added students/1714080902605/提交订单顺序图.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified students/1714080902605/获取房源.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified students/1714080902605/获取房源类图.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 783d972

Please sign in to comment.