当前位置:网站首页>如何编写测试用例
如何编写测试用例
2022-06-21 15:52:00 【多测师111】
测试用例:指导性执行测试,帮助证明软件功能或发现软件缺陷的一种说明。每一个测试点的数据设计和步骤设计。
测试用例的重要性:
(1)、便于测试计划的实施
一般主要适用于集成测试、系统测试、回归测试。根据用例知道自己的进度
(2)、规划测试数据的准备
比如注册,要提前准备好手机号、身份证号、不重复的用户名,邮箱等
(3)、编写测试脚本的根本
自动测试的中心任务是编写测试脚本。测试脚本就是以测试用例为基础的。
(4)、评估测试结果的基准
通过测试用例的覆盖性和错误率,可以判断测试的结果,是否能发布

(5)、分析缺陷标准
收集缺陷,对比测试用例。分析是漏测还是缺陷复现。反应了测试的不完善,应立即补充相应的测试用例
*测试标题如何写:测试点,对测试点进行细化分解。比如:输入正确的用户名、密码,能否正常登陆。
测试用例编写格式注意:
(1)、测试标题一定要描述测试点(验证什么写什么),简洁明了,不存在重复
(2)、测试步骤要有指导性的意义,涉及测试数据输入最好包含具体的测试数据
(3)、预期结果是唯一的,不能出现“发送成功或失败”
如何编写测试用例?
用例包含:用例编号、功能模块、用例标题、前提条件、操作步骤、期望结果(含判断标准)、实际结果、备注
编写方式:按照功能+业务逻辑
(1)、首先保证单个功能是正常的
(2)、然后功能联合起来的业务逻辑是对的
比如:登录、充值、提现等功能都是好的。业务逻辑,就是把所有的功能联合起来走一遍,看是否是好的
用例覆盖:包含正面和反面的用例
(1)、正面用例:根据功能模块划分,针对要测试的功能模块,所有正常输入数据的测试用例都写出来
(2)、反面用例:例如登录失败等,输入非法数据,违反唯一约束等等
如需了解更多测试技术信息请关注:深圳多测师软件与技术服务有限公司a
边栏推荐
- What has paileyun done to embrace localization and promote industrial Internet?
- What are the differences between SVN and VSS
- 一文get到SOLID原则的重点
- Uniswap去中心化交易所系统开发方案
- PingCAP 入选 2022 Gartner 云数据库“客户之声”,获评“卓越表现者”最高分
- 好用不贵!11款开源自动化安全测试工具简介
- [deep learning] was blasted by pytorch! Google abandons tensorflow and bets on JAX
- [greedy] leetcode1005k times the maximum value of the array after negation
- TypeScript(6)函数
- 重装电脑系统完整教程
猜你喜欢

Dstream and its basic operating principle

Distributed analytical database star ring argodb 3.2

How fragrant! 15 minutes to complete intelligent annotation, model training, service deployment

"I, an idiot, have recruited a bunch of programmers who can only 'Google'

WDS must know and know

20000 words + 30 pictures | what's the use of chatting about MySQL undo log, redo log and binlog?

The rising sun chart effectively shows the hierarchy and ownership of data

What has paileyun done to embrace localization and promote industrial Internet?

在线JSON转YAML工具

Unable to boot device in current state: started - unable to boot device in current state: booted
随机推荐
What is the difference between everything, gnomelive, kdelive, livecd and netinstall in the image?
PingCAP 入选 2022 Gartner 云数据库“客户之声”,获评“卓越表现者”最高分
【直播预告】6月24日 19点 HCSD大咖直播--就业指南,针对即将到来的秋招和暑期实习,带你梳理面试要点~~
关于#sql#的问题:sql中有人知道这些问题大概是怎么解答吗?
Advanced performance test series 5. server development, VMware virtual technology
addslashes,stripslashes
鲁班会开发者深度论坛丨与成都伙伴一起 “洞见物联网新风潮”
Research Report on the overall scale, major manufacturers, major regions, products and application segments of twin-screw superchargers in the global market in 2022
Web page automation practice 5. get the name, price and rating information of all hotels and write them into the file
The database cannot be connected. I don't know what's wrong
华为云发布《云原生2.0架构白皮书》,GaussDB技术再升级
Web网页自动化实战《5.获取所有酒店的名字、价格、评分信息,并写入文件》下篇
Web3 security series 𞓜 attack types and lessons learned
How fragrant! 15 minutes to complete intelligent annotation, model training, service deployment
“我这个白痴,招到了一堆只会‘谷歌’的程序员!”
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP
Gmail:如何跟踪邮件阅读状态
好用不贵!11款开源自动化安全测试工具简介
Selection (038) - what is the output of the following code?
在线JSON转YAML工具