当前位置:网站首页>What are the test case design methods?
What are the test case design methods?
2022-06-26 22:04:00 【Software testing old Joe】
In fact, the design method of test cases is mainly 7 The big way :
Equivalence class division , The boundary value , Scene method , Decision table , Cause and effect diagram , Wrong inference , Orthogonal test method .
Many people just know these methods , Each method combined immediately confused .
Before trying to connect these methods , Let's first look at the problems to be solved by each method .
The emergence of equivalence class partition , Is to make testing possible .
for instance , For example, let's test the mobile phone number input box , If there is no equivalence class partition , So is it necessary to enumerate all the situations once .
At that time, if there was equivalence class division , We can at least classify them .
For example, mobile phone numbers can be divided into valid and invalid , And invalid length can be divided into invalid length , Invalid rule , The input information is not standardized and so on .
After that, after the classification of equivalence classes is completed , The next step is to select the boundary points of the classification boundary , Each boundary value is the boundary point generated after the equivalence class division is completed .
So the boundary value is actually looking for errors at the edge of the equivalence class .
Let's talk about the end scene , A lot of times , We're testing all the software , So when combing the business process , Will use the scene method , Sort out the normal flow with the scene method , Alternative streams , After that, the equivalence class division and boundary value of each flow are refined .
The decision table is used when there is a correlation between input and output , Will sort out the related parts of the business using the judgment table .
, Combined with each item of the decision table, do the test of refining the boundary value of the equivalent class .
Cause and effect diagrams are less commonly used , The cause and effect diagram itself is actually to get the judgment table
As for error inference , In the process of testing, we often , Combined with the actual situation of the software , Make targeted guesses about where there will be problems , Targeted design use cases .
Last , Orthogonal test , Mainly in the face of multiple factors , When it comes to horizontal relationships , Will use a small amount of instead of comprehensive .
summary :
Test methods mainly include equivalence classes 、 The boundary value 、 Scene method 、 Decision table 、 Cause and effect diagram 、 Wrong inference 、 Orthogonal test method , First, when you get the requirements document , I will first use the scenario method to sort out the basic flow and alternative flow of the software , Then combine the equivalence class 、 Boundary value analysis test case ; When there is a corresponding relationship between input and output, I will draw the decision table first , Then combine the equivalence class 、 Boundary value analysis ; Of course, there are those very complex , Examples of vending machines mentioned online , I'll sort out the judgment table with the cause and effect diagram first . There is also the ability to accumulate knowledge about software errors based on your own knowledge , Use error inference to test , Finally, there is a less commonly used orthogonal test method , It is mainly used for horizontal relationship , When the project is urgent , A test conducted by sampling
边栏推荐
- 卷积神经网络(CNN)详解及TensorFlow2代码实现
- Yolov6: un cadre de détection de cibles rapide et précis est Open Source
- Is it safe to open a stock account with the QR code given by the CICC securities manager? I want to open an account
- Unity 设置Material、Shader的方法
- 【混合编程jni 】第七篇之JNI 的命令行们
- DAST 黑盒漏洞扫描器 第五篇:漏洞扫描引擎与服务能力
- leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]
- 如何用 SAP BTP 平台上的图形建模器创建一个 OData 服务
- 简析攻防演练中蓝队的自查内容
- Flutter 中 ValueNotifier<List<T>> 监听问题解决
猜你喜欢
Icml2022 | neurotoxin: a lasting back door to federal learning
What are the accounting elements
矩阵求导及其链式法则
leetcode:710. Random numbers in the blacklist [mapping thinking]
leetcode:1567. Length of the longest subarray whose product is a positive number [dp[i] indicates the maximum length ending with I]
Convolutional neural network (CNN) explanation and tensorflow2 code implementation
关于appium踩坑 :Encountered internal error running command: Error: Cannot verify the signature of (已解决)
Vulnhub's DC8
Using C to operate SQLSERVER database through SQL statement tutorial
Data governance does everything
随机推荐
Godson China Science and technology innovation board is listed: the market value is 35.7 billion yuan, becoming the first share of domestic CPU
用C#通过sql语句操作Sqlserver数据库教程
证券注册开户有没有什么风险?安全吗?
【图像处理基础】基于matlab GUI图像直方图均衡化系统【含Matlab源码 1924期】
DAST black box vulnerability scanner part 5: vulnerability scanning engine and service capability
Leetcode (122) - the best time to buy and sell stocks II
SAP Spartacus 默认路由配置的工作原理
Introduction to dependency injection in SAP Spartacus
Usage of MGrid in numpy
Which securities company is the most convenient, safe and reliable for opening an account
Matrix derivation and its chain rule
Data governance does everything
Y48. Chapter III kubernetes from introduction to mastery -- pod status and probe (21)
简析攻防演练中蓝队的自查内容
Leetcode (763) -- dividing letter ranges
leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]
Centos7编译安装Redis
中金财富开户安全吗?我想开户炒股。
【混合编程jni 】第七篇之JNI 的命令行们
卷积神经网络(CNN)详解及TensorFlow2代码实现