当前位置:网站首页>Equivalence class partition method for test case design method
Equivalence class partition method for test case design method
2022-06-30 00:50:00 【Multi surveyor 111】
One . Method introduction
Divide equivalence class : 1) Effective equivalence class 2) Invalid equivalence class
Criteria for dividing equivalence classes :
1) Complete test 、 Avoid redundancy ;
2) It is important to partition equivalence classes : Partition of sets , Divided into a set of disjoint subsets , And the subset is not the whole set ;
3) And the whole collection : completeness ;
4) Subsets do not intersect each other : Ensure a form of non redundancy ;
5) Identify... In the same category ( choice ) A test case , In the same equivalence class , Often deal with the same , The same processing is mapped to " Same execution path ".

The method of dividing equivalence classes
1) When the input condition specifies the value range or the number of values , Then we can establish a valid equivalence class and two invalid equivalence classes .
2) A set of input values is specified in the input condition or " How to " Under the same conditions , A valid equivalence class and an invalid equivalence class can be established ;
3) If the input condition is a Boolean quantity , A valid equivalence class and an invalid equivalence class can be determined .
4) Set of values specified in the input data ( Assume n individual ), And when the program has to process each input value separately , Establish n Valid equivalence class and invalid equivalence class .
example : The input condition indicates that the educational background can be : Specialty 、 Undergraduate 、 master 、 Doctor, one of the four , Then take these four values as the four effective equivalence classes , In addition, any degree other than the four is regarded as an invalid equivalent class .
5) In the case of rules that must be followed for input data , A valid equivalence class can be established ( Conform to the rules ) And several invalid equivalent classes ( Breaking the rules from different angles );
Design test cases
After establishing the equivalence class , The equivalence class table can be established , List all the equivalence class input conditions : Effective equivalence class 、 Invalid equivalence class , Then, the test cases are designed according to the following three principles :
1) Specify a unique number for each equivalence class ;
2) Design a new test case , Make it cover as many effective equivalence classes as possible , Repeat this step , Until all valid equivalence classes are covered ;
3) Design a new test case , Make it cover only one invalid equivalent class that has not been covered , Repeat this step , Until all invalid equivalence classes are covered .
For more information on testing techniques, please pay attention to : Shenzhen duosurveyor software and Technical Service Co., Ltd
边栏推荐
- The SQL statement concat cannot find the result
- 2022-06-29: x = {a, B, C, D}, y = {e, F, G, H}, the length of the two small arrays X and Y is 4. If yes: a + e = B + F = C + G = D + H
- Developers, why does the maturity of container technology herald the arrival of cloud native era?
- How about stock online account opening and account opening process? Also, is it safe to open an account online?
- [cloud native] kernel security in container scenario
- Botu V16 changes the model and firmware version of PLC
- Video to image -cv2 Videocapture() usage
- 【Proteus仿真】8比特端口檢測8獨立按鍵
- Which direction of network development is better? Data communication engineer learning path sharing
- 一些生活的思考
猜你喜欢
![[mrctf2020]ezpop-1 | PHP serialization](/img/f8/6164b4123e0d1f3b90980ebb7b4097.png)
[mrctf2020]ezpop-1 | PHP serialization

初始I/O及其基本操作

2022-06-29: x = {a, B, C, D}, y = {e, F, G, H}, the length of the two small arrays X and Y is 4. If yes: a + e = B + F = C + G = D + H

Use of shortcut keys for idea tools

Briefly: how are fragments communicated?

Yunna | advantages of fixed assets system management, what are the characteristics of fixed assets management system

How latex enters a matrix

月薪没到30K的程序员必须要背的面试八股,我先啃为敬!

How to seamlessly transition from traditional microservice framework to service grid ASM

UDP servers and clients in go
随机推荐
Mr. Hu Bo, CIO of weiduomei, a scientific innovator: digitalization is a bloodless revolution, and the correct answer lies in the field of business
利用huggingface进行文本分类
Which securities company is better and which platform is safer for stock speculation account opening
Ml: introduction to confidence interval (the difference and relationship between precision / accuracy / accuracy), use method, and detailed introduction to case application
月薪没到30K的程序员必须要背的面试八股,我先啃为敬!
Time does not spare
Antd - tree structure: default deployment node attribute failure - Basic promotion
2022年最新最详细IDEA关联数据库方式、在IDEA中进行数据库的可视化操作(包含图解过程)
In 2022, the latest and most detailed idea associated database method and visual operation of database in idea (including graphic process)
Lower expectations
Command line Basics
数据中台咋就从“小甜甜”变成了“牛夫人”?
在线SQL转CSV工具
【mysql篇-基础篇】通用语法2
在线文本数字识别列表求和工具
初始I/O及其基本操作
面试官:大量请求 Redis 不存在的数据,从而影响数据库,该如何解决?
How much is the fixed asset management system and the price of the fixed asset management system
TwinCAT 3 EL7211模块控制倍福伺服
Bytek suffered a disastrous defeat in the interview: he was hanged on one side, but fortunately Huawei pushed him in, and he got an offer on three sides