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

#3 #430 实验三:过程建模 #1337

Merged
merged 8 commits into from
Mar 17, 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
29 changes: 15 additions & 14 deletions students/1714080902635/lab2.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
后置条件 | | *可选*
基本流程 | 1.超市管理员点击录入会员信息按钮; |*用例执行成功的步骤*
~| 2.系统显示录入会员页面; |
~| 3.超市管理员输入会员的相关信息,点击录入按钮; |
~| 3.超市管理员输入会员信息,点击录入按钮; |
~| 4.系统根据ID查询会员信息,ID不重复,保存会员信息; |
~| 5.系统显示”录入成功”。 |
扩展流程 | 4.1 系统查询到ID已存在,显示”录入失败,该会员已存在”。 |*用例执行失败*
~| 5.系统提示”录入成功”。 |
扩展流程 | 4.1 系统查询到ID已存在,系统提示”录入失败”。 |*用例执行失败*


## 表2:修改会员信息用例规约
Expand All @@ -52,11 +52,11 @@
基本流程 | 1.超市管理员进入会员个人信息页面; |*用例执行成功的步骤*
~| 2.超市管理员点击修改信息按钮; |
~| 3.系统显示会员信息修改页面; |
~| 4.超市管理员修改相关信息,点击保存按钮; |
~| 5.系统查询会员信息,发现未存在完全相同的信息,保存新的会员信息; |
~| 6.系统显示”修改成功”。 |
扩展流程 | 5.1 系统检查当前信息与修改前一致,显示”抱歉,你未做任何修改!” |*用例执行失败*
~| 5.2 系统检测到有信息为空,显示“信息未填写完整” |
~| 4.超市管理员修改会员信息,点击保存按钮; |
~| 5.系统查询会员信息,发现信息不为空且未存在完全相同的信息,保存新的会员信息; |
~| 6.系统提示”修改成功”。 |
扩展流程 | 5.1 系统检测到有信息为空,提示“信息未填写完整” |*用例执行失败*
~| 5.2 信息与修改前一致,提示”未做任何修改!” |


## 表3:转移积分规约
Expand All @@ -67,9 +67,10 @@
前置条件 | 超市管理员进入会员个人信息页面 | *可选*
后置条件 | | *可选*
基本流程 | 1.超市管理员点击转移积分按钮; |*用例执行成功的步骤*
~| 2.超市管理员输入转入的账户ID,点击转移按钮; |
~| 3.系统检查该转入的ID存在; |
~| 4.系统将新ID的积分加上当前账户的所有积分,将当前ID的积分清零 ; |
~| 5.系统显示“积分转移成功” 。 |
扩展流程 | 1.1系统检查到当前账户积分为0,显示“当前积分为0” ;|*用例执行失败*
~| 3.1 系统检测到输入的账号不存在。 |
~| 2.系统检查到当前账号积分不为0; |
~| 3.超市管理员输入转入的账户ID,点击转移按钮; |
~| 4.系统检查待转入的ID存在; |
~| 5.系统更新新旧账号积分 ; |
~| 6.系统提示“积分转移成功” 。 |
扩展流程 | 2.1系统检查到当前账户积分为0,系统提示“当前积分为0” ;|*用例执行失败*
~| 4.1 系统检测到转入的账号不存在,提示“账号不存在”。 |
21 changes: 21 additions & 0 deletions students/1714080902635/lab3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 实验三:过程建模

## 一、实验目标
- 掌握过程建模。
- 绘制活动图(Activity Diagram)。
## 二、实验内容
- 绘制与用例规约相对应的活动图。
## 三、实验步骤
- 根据用例规约绘制录入会员信息、修改会员信息和转移积分活动图
1.添加开始(Initial)节点
2.添加结束(Final)节点
3.把基本流程和扩展流程的动作画为操作(Action)节点
4.分支的操作之后使用决策(Decision)节点

## 四、实验结果
![录入会员信息活动图](./录入会员信息.jpg)
图1 录入会员信息活动图
![修改会员信息活动图](./修改会员信息.jpg)
图2 修改会员信息活动图
![转移积分活动图](./转移积分.jpg)
图3 转移积分活动图
Binary file added students/1714080902635/修改会员信息.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/1714080902635/录入会员信息.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/1714080902635/转移积分.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.