当前位置:网站首页>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
边栏推荐
- Time does not spare
- Comment personnaliser les modèles et générer rapidement le code complet dans l'idée?
- 【Proteus仿真】8比特端口檢測8獨立按鍵
- Modbus TCP RTU protocol chart
- About the case of SQL statements
- How latex enters a matrix
- 如何查看一个文件夹下所有文件的大小?
- Practical application of information security
- Which securities company is better and which platform is safer for stock speculation account opening
- IDEA中的常用设置
猜你喜欢

岁月不饶人

【云原生】容器场景下的内核安全
![[cloud native] kernel security in container scenario](/img/cc/828a8f246b28cb02b7efa1bdd8dee4.png)
[cloud native] kernel security in container scenario

If the amount exceeds 6 digits after the decimal point, only 6 digits will be reserved, and if it is less than 6 digits, it will remain the same - Basic accumulation

作文总写不好怎么办?猿辅导:家长要注意这几点

SFDP super form development platform v6.0.4 was officially released

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

Which direction of network development is better? Data communication engineer learning path sharing

优秀的测试/开发程序员与普通的程序员对比......

IDEA中的常用设置
随机推荐
Crmeb SMS for program configuration of knowledge payment system
字节面试惨遭滑铁卢:一面就被吊打,幸得华为内推,三面拿到offer
I / o initial et son fonctionnement de base
Which securities company is better and which platform is safer for stock speculation account opening
如何在IDEA中自定義模板、快速生成完整的代碼?
降低打新的预期
Initial i/o and its basic operations
解决choice金融终端Excel/Wps插件修复visual basic异常
In 2022, the latest and most detailed idea associated database method and visual operation of database in idea (including graphic process)
开发者,为什么说容器技术的成熟预示着云原生时代的到来?
【mysql篇-基础篇】通用语法2
Visual Studio 2017 无法打开包括文件: “QOpenGLFunctions_3_3_Core”: No such file or directory
About the case of SQL statements
Live broadcast configuration of crmeb knowledge payment system program configuration (method 2)
浮点数通信
[MRCTF2020]Ezpop-1|php序列化
[UML] several relationships of UML (dependency Association aggregation composition inheritance Implementation)
如何做好测试用例设计
UDP servers and clients in go
如何拒绝期末复习无用功?猿辅导:找准适合自己的复习方法很重要