当前位置:网站首页>测试入门——使用场景法设计ATM的测试用例
测试入门——使用场景法设计ATM的测试用例
2022-07-21 04:13:00 【芷月_wyy】
1.场景法的定义
场景法使用流程图分析存在的测试用例。流程图中包含基本流、备选流和异常流。一个流程图中有且仅有一个基本流,开端是流程开始,结尾是流程结束。基本流是所有业务流程一次性成功完成得出的,系统的正确流程。备选流是在业务流程的某些环节输入错误,但这些错误不是致命的,通过回溯上一个流程,重新进行正确操作,最终可达到目标。异常流是错误输入导致流程异常终止的情形。
基于不同流的组合,我们可以得到场景。场景设计两要素:①要求从开始走到结束 ②所有路径均被覆盖。
2.场景法的适用阶段
场景法模拟的是用户实际操作软件的场景,主要用于测试多个功能之间的组合。更关注的是整个业务流程而非单个具体的模块或者功能点。
因此场景法主要使用阶段为集成测试和系统测试阶段。
3.使用场景法设计ATM的测试用例(流程有简化,仅用于熟悉场景设计方法,非专业人员)
场景表 | 场景确定 |
场景1 取款成功 | 基本流 |
场景2 卡片不合法 | 基本流,异常流1 |
场景3 卡片被锁定 | 基本流,备选流1,异常流2 |
场景4 密码输错小于3次,提醒输入密码 | 基本流,备选流1 |
场景5 取款金额错误,提示重新输入金额 | 基本流,备选流2 |
用例ID | 场景编号 | 银行卡 | 密码 | 金额 | 预期结果 |
atm_01 | 场景1 | V | V | V | 取款成功 |
atm_02 | 场景2 | I | n/a | n/a | 直接退卡 |
atm_03 | 场景3 | V | I | n/a | 卡片被锁定 |
atm_04 | 场景4 | V | I | n/a | 提醒重输密码 |
atm_05 | 场景5 | V | V | I | 提醒重输金额 |
边栏推荐
- Deep learning - (4) vgg16 image classification
- 作业正则 sed
- Poste technique | a40i les trois problèmes de logiciel de carte réseau les plus courants, analysez - les un par un pour vous
- (2)达梦数据库匹配
- 【.net core】yisha框架动态加载表格表头
- Recommended collection | practical operation, data console selection example
- Harbor scanner from principle to construction
- 载二氢丹参酮Ⅰ白蛋白纳米粒/去甲斑蝥素白蛋白纳米粒/伏立康唑白蛋白纳米粒的制备研究
- 电磁场与电磁波实验二 熟悉Matlab PDEtool在二维电磁问题的应用
- Trivy source code analysis (scanning the vulnerability information in the image)
猜你喜欢
Comparison of four bean copying tools
Strcspn, strchr special character verification
H5 customized sharing in wechat
Lombok simplifies development
笔试强训第19天
Preparation of paclitaxel combined with 2-methoxyestradiol albumin nanoparticles / Piper longum amide albumin nanoparticles
LeetCode:1260. Two dimensional mesh migration [one dimensional expansion + splicing]
Verilog语法基础HDL Bits训练 03
技术帖 | A40i最常见的3种网卡软件问题,为你逐一分析
Deep learning - (5) class of data imbalance_ weight
随机推荐
Harbor scanner from principle to construction
orangePi3 lts
(1)达梦数据库模型分析
SAP IDoc tutorial: definition, structure, type, format and table-019
解决報錯:Uncaught TypeError: Cannot read properties of undefined (reading ‘install‘)
MySQL optimization summary I
DOM 事件流(事件捕获和事件冒泡)
Part I - Fundamentals of C language_ 7. Pointer
Sql优化(九):分页语句优化
Codeworks 5 questions per day (average 1500) - day 21
【揭秘】年薪100万的项目经理复盘秘诀
SAP CRM Application Extension Tool的Custom Behavior
技術帖 | A40i最常見的3種網卡軟件問題,為你逐一分析
蓝灯绿灯按时明灭,编程古鲁的密语
Other regular validation rules web launch app
Fcrp-d --- simulation questions on the official website of sail software, kettle module
Verilog语法基础HDL Bits训练 03
45. Record the training process of orienmask and the process of deploying Yunshi technology depth camera
Okaleido tiger NFT is about to log in to binance NFT platform, and the era of NFT rights and interests is about to start
攻防世界----lottery