Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2 #3 #4 #5 #6 #1129 实验六:交互建模以及修改实验二、三、四五 #1984

Merged
merged 21 commits into from
Apr 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 15 additions & 22 deletions students/1714080902203/lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,25 @@
用例编号 | UC01 | 备注
-|:-|-
用例名称 | 添加关注人 |
前置条件 | 用户登陆系统 | *可选*
后置条件 | 用户进入米饭的追星系统首页 | *可选*
基本流程 | 1. 用户点击"添加"按钮; |*用例执行成功的步骤*
~| 2. 系统显示搜索页面; |
~| 3. 用户输入关注人名称,点击"搜索"按钮; |
~| 4. 系统检查关注人名称不为空,查询关注人名称; |
~| 5. 系统检查关注人名称存在,查询关注人信息; |
~| 6. 系统显示关注人主页; |
~| 7. 用户点击关注人主页"关注"按钮; |
~| 8. 系统保存关注信息,提示关注成功。 |
扩展流程 | 4.1 系统检查关注人名称为空,提示输入框不能为空。 |*用例执行失败*
~| 5.1 系统检查关注人名称不存在,提示此用户不存在。 |
前置条件 | 用户打开要关注的人的主页 | *可选*
后置条件 | | *可选*
基本流程 | 1. 用户点击"关注"按钮; |*用例执行成功的步骤*
~| 2. 系统检查关注人没有被关注,保存关注信息; |
~| 3. 系统提示"关注成功"。 |
扩展流程 | 2.1 系统检查关注人已被关注,提示此用户已被关注。 |*用例执行失败*


## 表2:发布动态用例规约

用例编号 | UC02 | 备注
-|:-|-
用例名称 | 发布动态 |
前置条件 | 用户登陆系统 | *可选*
后置条件 | 用户进入我的动态页面 | *可选*
基本流程 | 1. 用户点击"发布"按钮; |*用例执行成功的步骤*
~| 2. 系统显示编辑页面; |
~| 3. 用户编辑动态内容,点击"提交"按钮; |
~| 4. 系统检查动态内容不为空; |
~| 5. 系统检查动态内容不违规,保存动态,提示发布成功; |
~| 6. 系统显示我的动态页面。 |
扩展流程 | 4.1 系统检查动态内容为空,提示发布内容不能为空。 |*用例执行失败*
~| 5.1 系统检查动态内容违规,提示发布失败。 |
前置条件 | 用户进入发布动态的编辑页面 | *可选*
后置条件 | | *可选*
基本流程 | 1. 用户编辑动态内容; |*用例执行成功的步骤*
~| 2. 用户点击"提交"按钮; |
~| 3. 系统检查动态内容不为空; |
~| 4. 系统检查动态内容不违规,保存动态; |
~| 5. 提示发布成功; |
扩展流程 | 3.1 系统检查动态内容为空,提示发布内容不能为空。 |*用例执行失败*
~| 4.1 系统检查动态内容违规,提示发布失败。 |
4 changes: 2 additions & 2 deletions students/1714080902203/lab3.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

## 四、实验结果

![添加关注人的活动图](./lab3_model3.jpg)
![添加关注人的活动图](./lab3_model7.jpg)
图1:添加关注人的活动图

![发布动态的活动图](./lab3_model4.jpg)
![发布动态的活动图](./lab3_model6.jpg)
图2:发布动态的活动图
Binary file added students/1714080902203/lab3_model5.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/1714080902203/lab3_model6.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/1714080902203/lab3_model7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions students/1714080902203/lab4.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
## 四、实验结果

图1 用户添加关注人类图
![添加关注人类图](./lab4_model3.jpg)
![添加关注人类图](./lab4_model5.jpg)

图2 用户发布动态类图
![发布动态类图](./lab4_model2.jpg)
![发布动态类图](./lab4_model4.jpg)
Binary file added students/1714080902203/lab4_model4.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/1714080902203/lab4_model5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions students/1714080902203/lab5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 实验六:交互建模

## 一、实验目标

1. 理解系统交互;
2. 掌握UML顺序图的画法;
3. 掌握对象交互的定义与建模方法。


## 二、实验内容

1. 根据用例模型和类模型,确定功能所涉及的系统对象;
2. 在顺序图上画出参与者(对象);
3. 在顺序图上画出消息(交互)。


## 三、实验步骤

1. 从用例图中找到参与者(1)
2. 从类图找到所有的参与者(N)
3. 在StarUML中创建顺序图
- 添加关注人顺序图
- 发布动态顺序图
4. 通过用例规约画顺序图
5. 根据最终情况修改用例规约和所有的实验所画的图


## 四、实验结果

图1 添加关注人顺序图
![顺序图](./lab5_model6.jpg)

图2 发布动顺序图
![顺序图](./lab5_model5.jpg)
Binary file added students/1714080902203/lab5_model1.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/1714080902203/lab5_model2.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/1714080902203/lab5_model3.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/1714080902203/lab5_model4.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/1714080902203/lab5_model5.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/1714080902203/lab5_model6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.