当前位置:网站首页>What are the black box test case design methods in software testing methods?
What are the black box test case design methods in software testing methods?
2022-06-12 03:58:00 【Zezhongyun test】
Software testing methods The big direction is Black box test method and White box test method .
So-called Black box test method , Just care about the function , Don't care about code implementation details .
So-called White box test method , Is concerned about the specific implementation of the code , Cover the code as much as possible .
One 、 Division of equivalence class
Equivalence class partition is a typical black box test method .
The equivalence test method is to put all possible input data , That is, the input field of the program is divided into several parts , Then select a few representative data from each part as test cases . Using equivalence class partition method to design test cases needs to go through equivalence class partition ( List the equivalence classes ) And selecting test cases , It will not be exhaustive testing process for a reasonable classification , So as to ensure the integrity and representativeness of the designed test cases .
There are two different cases of equivalence division : Effective equivalence class and invalid equivalence class .
1、 Effective equivalence class means that it is reasonable for the requirement specification of the program , A collection of meaningful input data . Using the effective equivalence class, we can check whether the program has achieved the function and performance specified in the specification ( Confirmation process ).
2、 Invalid equivalence class ( In contrast to the definition of effective equivalence class ) It means that it is unreasonable for the requirements specification of the program , A collection of meaningless input data . Using the invalid equivalence class, we can test the exception handling ability of the program for invalid data ( Inspection process ).
When designing test cases , We should consider these two equivalence classes at the same time . because , Software should not only be able to receive reasonable data , To be able to stand the test of accidents . This kind of testing can ensure that the software has higher reliability .
An example in the book is very easy to understand , For example, a file system requires that the monthly input information be 1990 year 1 month ~2049 year 12 month , And by the 6 Digit composition , front 4 A digit represents a year , after 2 Bit means month .
(1) Divide equivalence classes and number
| Input equivalence class | Effective equivalence class | Invalid equivalence class |
| Type and length of date | (1) Yes 6 Four digit characters | (2) There are non numeric characters |
| (3) Less than 6 Four digit characters | ||
| (4) More than 6 Four digit characters | ||
| Year range | (5) Be situated between 1990~2049( With borders ) | (6) Less than 1990 |
| (7) Greater than 2049 | ||
| Month range | (8) Be situated between 01~12( With borders ) | (9) be equal to 0 |
| (10) Greater than 12 |
(2) Design test cases , Cover all valid equivalent classes .
| Test data | Expected results | The valid equivalent class of the cover |
| 200211 | The input is valid | (1)(5)(8) |
(3) Design test cases , Override all invalid equivalent classes .
| Test data | Expected results | Override invalid equivalent class |
| 95June | Invalid input | (2) |
| 20036 | Invalid input | (3) |
| 2001006 | Invalid input | (4) |
| 198912 | Invalid input | (6) |
| 205901 | Invalid input | (7) |
| 200100 | Invalid input | (9) |
| 200113 | Invalid input | (10) |
Two 、 Boundary value analysis
Boundary value analysis is a kind of black box test method to test the input or output boundary value . Generally, the boundary value analysis method is used as a supplement to the equivalence class division method , In this case , Its test case comes from the boundary of equivalence class .
Long term testing experience tells us that , A lot of errors occur at the boundary of the input or output range , Not inside the I / O range . Therefore, test cases are designed for various boundary conditions , We can find out more mistakes .
3、 ... and 、 Other common black box design use case methods
Decision table method
Cause and effect diagram
Orthogonal test method
State migration diagram method
Process analysis
Input field test method
Output domain analysis
Anomaly analysis
False suspicion
边栏推荐
- Data flow diagram of Flink
- Object detection model rfbnet -- a very useful model
- Paper recommendation: relicv2, can the new self supervised learning surpass supervised learning on RESNET?
- MySQL的check约束数字问题
- [Yugong series] March 2022 asp Net core Middleware - cross domain
- Absolute positioning three ways to center the box
- What is the difference between FOB, CIF and CFR?
- 绝对定位使盒子居中显示的三种方式
- PyTorch中的Sequential、ModuleList和ModuleDict用法总结
- Network tester operation manual renix rack management
猜你喜欢

魏武帝 太祖知不可匡正,遂不复献言

(idea)the file size(2.85M) exceeds configured limit(2.56M).Code insight features are not available问题

【FPGA+FFT】基于FPGA的FFT频率计设计与实现

Function realization and application of trait

数据库精选 60 道面试题

mysql/oracle 以唯一时间为分界,小于等于该时间求和,大于该时间求和

微服务概念及介绍

Notes on relevant knowledge points such as original code / inverse code / complement code, size end, etc

【C语言】程序的内存四区模型

顺序表与链表-----进阶
随机推荐
Mosaïque d'images basée sur la matrice de transformation
(idea)the file size(2.85M) exceeds configured limit(2.56M).Code insight features are not available问题
Database selected 60 interview questions
后续版本是否会支持代码块搜索高亮显示
成功解决:WARNING: There was an error checking the latest version of pip.
How do I extract files from the software?
How to modify the result name of MySQL query result 1 and result 2
认真工作对自己到底意味着什么?
Brief introduction to 44 official cases of vrtk3.3 (combined with steamvr)
DS18B20数字温度计 (一) 电气特性, 供电和接线方式
JSP implementation of bank counter business performance evaluation system
[Yugong series] March 2022 asp Net core Middleware - current limiting
What does kotlin collaboration scope and coroutinescope mainscope globalscope viewmodelscope lifecyclescope represent respectively
PostMessage implements window communication
Dynamic gauge (15) - Minimum toll
如何修改mysql 查询出来的结果名称 结果1,结果2
Hudi of data Lake (14): basic concepts of Apache Hudi
mysql/oracle 以唯一时间为分界,小于等于该时间求和,大于该时间求和
R语言plotly可视化:使用plotly可视化简单线性回归模型的回归线(simple regression model linear regression plots)
MySQL创建用户并授权
https://www.alltesting.cn/tools/dsfcs.html