Equivalence class

Definition of equivalence classes: Equivalence classes of input representative data subsets are divided into valid equivalence classes and invalid equivalence classes

The opposite of a valid condition is an invalid equivalence class. Various conditions need to be considered when testing. The following figure shows the validity and invalidity of two input fields in a calculator

Usually, we need to control invalid equivalence classes when conducting tests. There can only be one invalid equivalence class in a use case, and if there are two, it is impossible to determine which one causes the problem, wasting analysis time. Usually, all valid equivalence classes or one of them is invalid equivalence class when designing use cases

Examples of equivalence classes

Use case requirements analysis

Equivalence class exercise

The answer

Analysis: Valid equivalence class use cases: a use case is counted only when all conditions are valid equivalence classes. When one of the conditions has several equivalence classes, multiply. The first condition has two equivalence classes. 211 Valid equivalence class test cases are 2

Reference data: www.bilibili.com/video/BV17b…