当前位置:网站首页>如何快速定位bug和编写测试用例?
如何快速定位bug和编写测试用例?
2022-06-22 03:39:00 【玩技e族】




有很多朋友初次写用例,不知道从何下手,虽然有的公司给出了相关说明文档,但是写起来还是不能得心应手,编写用例方法有很多种:功能导向用例(边界值、等价类等等),用户导向用例(场景法),用户、功能相结合导向用例……文章源自玩技e族-https://www.playezu.com/166419.html
那么对于初次编写用例,应该怎样高效率的编写用例?应该注意点什么?文章源自玩技e族-https://www.playezu.com/166419.html
一、功能导向用例是按照系统需要达到的每一个功能,进行编写用例,这样的用例着重点在功能实现上,而没有考虑到每个功能之间的关联,因而虽然用例已经达到功能覆盖,却不一定达到逻辑覆盖,因而这种方法通常会和其他方法结合使用。功能导向用例是每个用例编写者前期最常用的方法。文章源自玩技e族-https://www.playezu.com/166419.html
二、用户导向用例是按照用户的习惯,将用户使用系统的每个目的作为一个目标,以每个目标实现为基点设计测试用例,但是设计这一类用例,初写者,可能会产生很多困惑(下面写一下我第一次写的时候有哪些困惑,并针对这些困惑,后来采取了怎样的解决方案)文章源自玩技e族-https://www.playezu.com/166419.html
1、编写用例的第一步我该做什么?文章源自玩技e族-https://www.playezu.com/166419.html
理解系统,首先站在测试的角度深入理解系统的每个功能与系统业务逻辑,画出业务逻辑图(即:系统能做什么)。文章源自玩技e族-https://www.playezu.com/166419.html
其次站在用户的角度,列出用户使用系统的目的(即:用户使用这个系统,想干什么?)文章源自玩技e族-https://www.playezu.com/166419.html
2、怎样确定用户目标?文章源自玩技e族-https://www.playezu.com/166419.html
不能确定用户目标,可能由2方面原因造成:a>对系统不够熟悉,b>不了解用户背景。对于第一点原因,那是你自己的原因,只有回过去头看文档了,对于第二点原因,可以从‘系统能做什么’推算出‘用户可以做什么’然后再总结出‘用户可能想做什么’,当然这样做的前提是你对系统已非常熟悉。文章源自玩技e族-https://www.playezu.com/166419.html
3.这个月我将做什么?文章源自玩技e族-https://www.playezu.com/166419.html
刚进入测试行业是怎样总结的(利用测试管理工具进行总结):文章源自玩技e族-https://www.playezu.com/166419.html
1)把测试管理工具中的缺陷全部分类导出,总结一下哪些模块容易产生哪些缺陷,重点看一下自己没发现或没有考虑到的缺陷。文章源自玩技e族-https://www.playezu.com/166419.html
2)如果说测试新人工作的第一层次是从执行用例开始,那么第二层次就是编写测试用例了。把测试管理工具中的用例详细看几遍,学习别人的用例编写方法和思想,空闲时间可以自己试着编写,看自己编写的与别人编写的用例差距在哪,从而不断完善。重要说明;着重用例编写方法和思想的学习,而不要死搬硬套。文章源自玩技e族-https://www.playezu.com/166419.html
3)进入一些测试论坛,把自己的困惑和经验和大家一起分享,在学习中,不断进步。文章源自玩技e族-https://www.playezu.com/166419.html
总结:文章源自玩技e族-https://www.playezu.com/166419.html
正所谓功夫在诗外,测试理论知识就是那么多,理论知识掌握之后就要不断的参与到项目中来,一个一个项目的练习,锻炼自己的发现Bug的能力,就算随机测试,一个好的测试和一个坏的测试,他们发现问题的能力也是完全不同的。以上完全是个人的一点体悟,各位看官,看的时候也请多多指教。文章源自玩技e族-https://www.playezu.com/166419.html
边栏推荐
- 基于.NetCore开发博客项目 StarBlog - (12) Razor页面动态编译
- Pointer and pointer of pointer
- Summary of image classification based on pytoch: swing transformer
- std::move与std::forward右值引用研究
- Mysql 45讲学习笔记(三)SQL更新语句的执行
- 3DE recover from design
- How to install laravel
- Threejs realizes the fluctuation hot spot effect, fluctuation mark and fluctuation label display
- MySQL 45 lecture learning notes (II) execution of SQL update statements
- ORA-32700: error occurred in DIAG Group Service
猜你喜欢

How to synchronize the oak camera?

3de 机器人吸盘抓box
![[网鼎杯 2018]Fakebook1 参考](/img/c8/a9d77308b6cc542c8c47a570b9234c.png)
[网鼎杯 2018]Fakebook1 参考

内网穿透

3000 yuan projector comparison and evaluation, dangbei D3x beats Jimi new Z6 x

Use yolov5 to train your own data set; Installation and use of yolov5; Interpretation of yolov5 source code

在请求目标中找到无效字符。有效字符在RFC 7230和RFC 3986中定义

Mysql 45讲学习笔记(一)一条sql语句的执行

3DE recover from design

128 traps - source code analysis
随机推荐
PHP uses composer
OAK相机如何实现同步?
C language integer value range - the problem of more than one negative number
76. minimum covering substring sliding window method
利用yolov5训练自己的数据集; yolov5的安装与使用 ; yolov5源码解读
svn与cvs的区别有哪些
What are the differences between SVN and CVS
How to randomly assign 1000 to 10 numbers
MySQL 45 lecture learning notes (IV) index
Cloud native architecture (03) - Architecture
快速掌握 ASP.NET 身份认证框架 Identity - 用户注册
Introduction to Beifu TwinCAT NC PTP
std::move与std::forward右值引用研究
基于.NetCore开发博客项目 StarBlog - (12) Razor页面动态编译
docker 安装redis
Flutter-状态管理
LeetCode --- 1221. Split a String in Balanced Strings 解题报告
Dart异步是怎么实现
Why is setinterval so easy to get stuck in the high and low level
倍福TwinCAT3伺服控制常用功能块的实现