当前位置:网站首页>Equivalence class partition method for test case design method
Equivalence class partition method for test case design method
2022-06-29 13:56:00 【51CTO】
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
边栏推荐
- weserver發布地圖服務
- Online text filter less than specified length tool
- Huawei machine learning service speech recognition function enables applications to paint "sound" and color
- @Table burst red
- Write a shell script to find the "reverse order" of a number“
- Use Gerrit + Zadig to realize trunk development and trunk publishing (including byte flying Book Practice)
- Why does ETL often become ELT or even let?
- Getting started with SQLite3
- Five years after graduation, I asked all the leaders around me and summarized their learning methods
- [graduation season] it's worth it all the way over the past four years -- advice from the senior students
猜你喜欢
![[graduation season · advanced technology Er] 10.76 million graduates, the most difficult employment season in history? I can't roll it up again. I lie down again and again. Where is the road?](/img/d5/7e093b898807b96b89bbe74174990b.png)
[graduation season · advanced technology Er] 10.76 million graduates, the most difficult employment season in history? I can't roll it up again. I lie down again and again. Where is the road?

Use Gerrit + Zadig to realize trunk development and trunk publishing (including byte flying Book Practice)

华为机器学习服务语音识别功能,让应用绘“声”绘色

逆向调试入门-PE文件节表与区块03/07

Write it down once Net analysis of a property management background service stuck
![[untitled] error in installation dependency: refusing to install package with name](/img/53/8c871037b7586343fd509dcecb0d96.png)
[untitled] error in installation dependency: refusing to install package with name "* * *" under a package

Uncover the secret! Pay attention to those machines under the membership system!

Weserver Publishing Map Service

【云驻共创】通过Rust语言计算加速技术突破图片识别性能瓶颈

Yyds dry inventory solution sword finger offer: find the nearest common ancestor of two nodes in the binary tree
随机推荐
Qitai observation: professional elites must step on the huge pit of entrepreneurship - learning effect pit
pdb符号库文件详解
Openssl证书工具使用手册
Interpretation of RESNET source code in mmdet +ghost module
Technology sharing | broadcast function design in integrated dispatching
C language__ VA_ ARGS__ Usage of
从Mpx资源构建优化看splitChunks代码分割
Cisco simulator simple campus network design, final assignment difficulty
Force buckle: merging two ordered linked lists
Introduction to esp8266: three programming methods "suggestions collection"
Follow me study hcie big data mining Chapter 1 Introduction to data mining module 2
How to set the safety line and safety margin for futures trading?
urllib urllib2
weserver發布地圖服務
维修记录导出的excel表格太大怎么办?
koa2+better-sqlite3实现增删改查
PG基础篇--逻辑结构管理(1)
Normalization layer of pytorch learning (batchnorm, layernorm, instancenorm, groupnorm) [easy to understand]
Aurora · Huffman tree generation (segment tree structure non pointer) (imitating adjacency table)
使用 Gerrit + Zadig 实现主干开发主干发布(含字节飞书实践)