Equivalence class Partitioning method
Equivalence class partitioning is a frequently used method in test work, each step of the testing work is closely related to it, in-depth understanding of this method, and flexible use is the basis of software testing work
The equivalence class partitioning method divides all possible input data, that is, the input field of a program into several parts (subsets), and then selects a small number of representative data from each subset as a test case
An equivalence class is a subset box of an input field. In this sub-collection, each input data is equivalent to the error in the disclosure program, and it is reasonable to assume that the test of the representative value of an equivalence class is equal to that of the other values in this category.
There are two different cases of equivalence class partitioning: Valid equivalence class and invalid equivalence class. Consider both of these equivalence classes at design time
The principle of the equivalence class design test case is that the test case should cover the two parts of the valid equivalence class and the invalid equivalence class.
For example:
Software requirements require that when the total amount of shopping cart purchases is in [200,300], the products in the shopping cart enjoy a 90 percent discount.
Then, the valid equivalence class in this example is [200,300], and the invalid equivalence class is [-∞,200] and [300,+∞].
Software testing Method-equivalence class partitioning method