当前位置:网站首页>软件测试与质量学习笔记2----黑盒测试
软件测试与质量学习笔记2----黑盒测试
2022-07-28 09:06:00 【萍果馅是年糕】
1.黑盒测试-因果图法
我们知道,当被测对象的输入条件相互依赖、相互制约的时候,适合判定表法。
当输入条件过多时,使用判定表会产生大量测试用例,而且也不能覆盖条件之
间的先后关系-----因果图法
2.什么是因果图
是一种利用图解法分析输入的各种组合情况,从而设计测试用例的方法。
因果图法最终生成的就是判定表
3.因果图组成
因果图中使用简单的关系符号,以直线联接左右结点。
左结点表示输入状态(原因),右结点表示输出状态(结果)。
0表示某状态不出现,1表示某状态出现。
4.因果图的关系符号
恒等
表示原因与结果之间一对一的对应关系。若原因出现,则结果出现;若原因不出现,则结果也不出现
非
表示原因与结果之间的一种否定关系。若原因出现,则结果不出现;若原因不出现,反而结果出现。
或
表示若几个原因中有一个出现,则结果出现;只有当‘这几个原因都不出现时,结果才不出现。
与
表示若几个原因都出现,结果才出现;若几个原因中有一个不出现,结果就不出现。


5.因果图的约束符号
在实际问题当中,输入状态相互之间还可能存在某些依赖关系,称为约束。例如,某些输入条件本身不可能同时出。
E约束(异/互斥)exclusive
表示几个原因不会同时成立;
可能他们都不成立,但最多有一个成立。
I约束(或/包含)in
表示几个原因中至少有一个必须成立,当然也可能都成立。
O约束(唯一)only
表示几个原因中必须有且仅有一个成立。
R约束(要求)requst
表示当a出现时,b必须也出现。
M约束(屏蔽)mandate
表示当a是1时,b必须是0;而当a为0时,b的值不一定。




6.因果图法设计用例步骤
找出输入输出并进行标识->分析输入输出的关系->画出因果图->因果图转换为判定表->生成测试用例
边栏推荐
- Analysis of HashSet internal principle
- Go language slice vs array panic runtime error index out of range problem solving
- 数据库核心体系
- Regular expressions are hexadecimal digits?
- 2022牛客多校第一场补题
- Basic operation of MATLAB
- How promise instance solves hell callback
- 力扣376-摆动序列——贪心
- 译文推荐 | 调试 BookKeeper 协议 - 无界 Ledger
- FPGA development learning open source website summary
猜你喜欢
![[Download] several tools for brute force cracking and dictionary generation are recommended](/img/c6/f4a9c566ff21a8e133a8a991108201.png)
[Download] several tools for brute force cracking and dictionary generation are recommended
![[log] what does a log do? What is a log factory? Configuration and use of log4j? log4j. Properties file configuration, log4j jar package coordinates](/img/ae/096b558bc1342447205b442a244aae.png)
[log] what does a log do? What is a log factory? Configuration and use of log4j? log4j. Properties file configuration, log4j jar package coordinates

JS array is de duplicated, the ID is the same, and a value is added and merged

Regular expressions for positive and negative values

With such a simple verification, 80% of programmers can't do it, let alone understand it!

Technology sharing | quick intercom integrated dispatching system
![[C language] detailed explanation sequence table (seqlist)](/img/60/c8cee6a6afe57247aba583291cc99b.png)
[C language] detailed explanation sequence table (seqlist)
![Magic brace- [group theory] [Burnside lemma] [matrix fast power]](/img/cf/606d1bc7cd877771afbdd7640b718c.png)
Magic brace- [group theory] [Burnside lemma] [matrix fast power]

478-82(56、128、718、129)

IntelliJ idea associated database
随机推荐
Conference OA system
[one flower, one world - Professor Zheng Yi - the way of simplicity] interpretable neural network
What is the difference between these two sets of code?
Problems encountered in upgrading golang to version 1.18.4
[solution] error in [eslint] eslint is not a constructor
MATLAB的实时编辑器
The maximum recommended number of rows for MySQL is 2000W. Is it reliable?
Personal blog applet
股指期货开户的条件和流程
Activiti startup error: cannot create poolableconnectionfactory (could not create connection to database server
[C language] detailed explanation sequence table (seqlist)
IJCAI 2022 | the latest overview of graph structure learning: research progress and future prospects
ARouter源码解析(二)
数据库核心体系
数据库那么多概念性的东西怎么学?求方法
My vivado practice - single cycle CPU instruction analysis
Changes in the relationship between data and application in IT industry
Dn-detr paper accuracy, and analyze its model structure & 2022 CVPR paper
2022 safety officer-b certificate examination simulated 100 questions and answers
使用 OpenSSL 创建ssl证书