Understanding Equivalence Class Testing
Q: What is equivalence class testing?
- Test design techniques
- Junior level question
Explore all the latest Test design techniques interview questions and answers
ExploreMost Recent & up-to date
100% Actual interview focused
Create Test design techniques interview for FREE!
Equivalence class testing is a software testing technique used to reduce the number of test cases that must be executed. It is a division of inputs into classes of data from which test cases can be derived. Equivalence class testing involves identifying equivalent data that can be used to represent a larger set of data. With this method, the test engineer can identify representative data from the pool of data values to reduce the number of test cases to be executed.
For example, a user may be asked to enter their age. While the user can enter any integer between 0 and 120, the test engineer can divide the possible inputs into three equivalence classes:
1. Class 1: Ages 0-9
2. Class 2: Ages 10-59
3. Class 3: Ages 60-120
Therefore, the test engineer only needs to execute three test cases (one for each class) instead of 121 separate test cases.
In addition, equivalence class testing is a type of boundary value analysis, where the boundaries of the classes are tested. For example, the boundary between Class 1 and Class 2 is age 10. The test engineer should execute a test case to ensure that an age of 10 is correctly classified in Class 2.
For example, a user may be asked to enter their age. While the user can enter any integer between 0 and 120, the test engineer can divide the possible inputs into three equivalence classes:
1. Class 1: Ages 0-9
2. Class 2: Ages 10-59
3. Class 3: Ages 60-120
Therefore, the test engineer only needs to execute three test cases (one for each class) instead of 121 separate test cases.
In addition, equivalence class testing is a type of boundary value analysis, where the boundaries of the classes are tested. For example, the boundary between Class 1 and Class 2 is age 10. The test engineer should execute a test case to ensure that an age of 10 is correctly classified in Class 2.


