当前位置:网站首页>软件测试(三)p51-p104 软件测试用例方法、缺陷
软件测试(三)p51-p104 软件测试用例方法、缺陷
2022-04-21 14:33:00 【路边大榕树】
边界值分析法

边界值只是一个特定的数据。例如文本框需要输入6-18个字符,边界值有:6个字符;18个字符
次边界:边界附近的值; 按照系统规定的单位,相差一个数据的值。
1)6<=x<=12 测试:内12外13
2)6<x<12 测试:内11 外12
- 边界值的选择原则

实战案例(三角形)



因果图法




因果图法实例

案例:自助售货机
原因:投币(5角,一元)、选饮料(橙汁,啤酒)
结果:出橙汁、出啤酒、找零五角
5角+选橙汁------出橙汁
5角+选啤酒------出啤酒
局限性:原因和结果很多时,关系连线变多,因果可读性变差,因此适用于局部小功能分析
测试用例:

判定表法
适用于多条件的内容组合与结果分析
使用条件:所有的条件桩在表中位置和顺序互相不影响,所有动作桩顺序不会因为条件顺序的变化产生不同。
步骤
1、识别出条件,和对应的动作(结果)。
2、分析条件的组合数量:n个条件,每个条件两种情况,则2的n次方结果。
3、简化优化结果,排除一些不可能存在的情况

实例

1、分析条件和动作

2、写入条件桩、动作桩

3、优化
不管金额高低,只要未过期就会发送批准单和提货单(可以二选一测试)优化以后条件项减少为3个。

4、将判定表中的每一列作为操作和预期结果
判定表适合使用条件:

测试用例的设计方法,不单独使用:
1、所有的软件,都是因为某种操作才导致一定的结果。–因果图
2、所有的软件都有文本框–考虑使用等价类、边界值。

合并1234为一项,疲倦一律休息
合并78,都不疲倦,不感兴趣就下一章

场景法

基本流:软件基本功能正确实现的过程
备选流:基本功能之外

测试步骤

正交实验法

案例

功能图法

适用场合:软件状态会根据某些内容、操作变化而变化。

以QQ登录为案例:
1)识别出可以进行的操作:
IP1输入账号
IP2输入密码‘
IP3点击登录
IP4点击关闭按钮
2)定义QQ登陆界面为空闲状态
3)给空闲状态加操作(第一轮分析)

产生了新的状态,针对新的状态第二轮分析。
4)将状态变化过程列表化

其他用例设计方法



用例设计方法综合选择

——————————分界线————————————————
缺陷
-
缺陷的定义

-
缺陷的属性

-
缺陷的类型

需求分析、设计阶段,文档类型缺陷多;集成测试阶段,接口类缺陷多;系统测试阶段,功能、界面缺陷多;验收测试阶段,关注性能缺陷;实施过程,可能遇到软件包缺陷 -
缺陷的严重程度

-
缺陷修复优先级

缺陷的严重程度和优先级之间有什么关系?
没有直接关系,不要认为严重的缺陷,优先级就高
提交缺陷时能不能夸大或降低缺陷的严重程度?
不能 -
缺陷的状态

-
缺陷的起源

-
缺陷的来源


-
缺陷的生命周期

缺陷的识别

- 缺陷报告



版权声明
本文为[路边大榕树]所创,转载请带上原文链接,感谢
https://blog.csdn.net/duoduohair/article/details/123953884
边栏推荐
- Why does MySQL index use B + tree instead of jump table?
- 数据仓库架构演变和建设思路
- In depth analysis of TCP three handshakes, the interviewer applauded
- Implementation of broadcast and monitoring at source level
- 股价暴跌 Robinhood收购英国加密公司求扩张
- Three methods for beginners to exchange the values of two variables
- Personal summary of linked list examples
- 虫子 1602
- 虫子 二叉树
- 存储系统及存储器
猜你喜欢

It's been 2 years since the career change test. Give some advice to girls who are still hesitating

LNK2001 - unresolved external symbol in PCL test program

Several implementation methods and optimization of quick sorting

如何申请免费SSL证书?宝塔面板SSL证书安装部署完整教程

The use of toString and wrapper class

英特尔最新成果:制造出大规模硅基量子比特

I took out 38K from Tencent and showed me the basic ceiling

五个拿来就能用的炫酷登录页面

Legendary server setup tutorial, legendary GM permission command setting tutorial

toString的使用与包装类的使用
随机推荐
转行测试2年了,给还在犹豫的女生一点建议
In depth analysis of TCP three handshakes, the interviewer applauded
.Net C# Newtonsoft. JSON serializersettings configuration
How to apply for a free SSL certificate? Pagoda panel SSL certificate installation and deployment complete tutorial
元宇宙发展现状分析
Dynatrace抓取系统中的任何方法Method的参数值
Dbaver cannot connect to the database. How to solve it?
WordPress博客搭建指南
Experience and guidance of seniors preparing for the postgraduate entrance examination of Applied Psychology in Northeast Normal University in 2023
分布式数据库--SQL优化之Plan Hint
Insect binary tree OJ
UE4根据地图名称获得完整地图路径
C语言预处理问题
[groovy] mop meta object protocol and meta programming (use groovy meta programming to intercept functions and call other methods of the class through metaclass invokemethod method)
Redis的五种数据结构分析
Detect and open WhatsApp
如何在excel中插入文件?Excel插入对象和附件有什么区别?(插入对象能直接显示内容,但我没显示?)
Bug custom type
如何在代码层面提供CPU分支预测效率
[groovy] mop meta object protocol and meta programming (use groovy meta programming for function interception | dynamic interception function | dynamically obtain methods in metaclass | evaluate metho