当前位置:网站首页>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
边栏推荐
- 阿于的彩虹桥
- Initial i/o and its basic operations
- Intermittent sampling and forwarding interference
- 【Proteus仿真】8比特端口檢測8獨立按鍵
- Ml: introduction to confidence interval (the difference and relationship between precision / accuracy / accuracy), use method, and detailed introduction to case application
- Interviewer: how to solve the problem of massive requests for data that does not exist in redis, which affects the database?
- 数据中台咋就从“小甜甜”变成了“牛夫人”?
- [MySQL basic] general syntax 2
- IDEA中的常用设置
- Common interview questions for network workers: Telnet, TTL, router and switch
猜你喜欢

Good test / development programmers vs. average programmers

Time does not spare

在线SQL转CSV工具

How to create a module in the idea and how to delete a module in the idea?

Go 中的 UDP 服务器和客户端

Distributed task scheduling elasticjob demo

TwinCAT 3 EL7211模塊控制倍福伺服

Briefly: how are fragments communicated?

【mysql篇-基础篇】通用语法2

How to design test cases
随机推荐
Byte, word, doubleword relationship
Outsourcing for 3 years is a waste
Crmeb SMS for program configuration of knowledge payment system
Yunna | fixed assets information system management, information-based fixed assets management
【three.js】WEB3D初次体验
【深度学习编译】算子编译 IR 转换
岁月不饶人
科创人·味多美CIO胡博:数字化是不流血的革命,正确答案藏在业务的田间地头
TwinCAT 3 EL7211模塊控制倍福伺服
字节面试惨遭滑铁卢:一面就被吊打,幸得华为内推,三面拿到offer
【Proteus仿真】8位端口检测8独立按键
latex如何输入一个矩阵
Top performance version 2 reading notes (IV) -- memory monitoring
SFDP super form development platform v6.0.4 was officially released
Interviewer: how to solve the problem of massive requests for data that does not exist in redis, which affects the database?
Citation of Dissertation
博途V16 更改PLC的型号和固件版本
[UML] several relationships of UML (dependency Association aggregation composition inheritance Implementation)
传统微服务框架如何无缝过渡到服务网格 ASM
数据中台咋就从“小甜甜”变成了“牛夫人”?