Interview Questions, Answers and Tutorials

Category: Equivalence Partitioning

Equivalence Partitioning Tutorial

Definition of Equivalence Partitioning Equivalence Partitioning is a black-box testing technique (basic test-design technique) that splits the input domain into classes of data. From this data, we can derive test cases. Test-case design with the help of equivalence partitioning technique has two steps: 1) Identifying the equivalence classes. 2) Defining the test cases. Example 1 of Equivalence Partitioning Problem:- The program reads three integer values from an input dialog. The three values represent the lengths of the sides of a triangle. The program displays a message that states whether the triangle is scalene, isosceles, or equilateral. Remember that a scalene…

Equivalence Partitioning

Equivalence partitioning(EP) is a specification-based or black-box technique. It can be applied at any level of testing and is often a good technique to use first. The idea behind this technique is to divide (i.e. to partition) a set of test conditions into groups or sets that can be considered the same (i.e. the system should handle them equivalently), hence ‘equivalence partitioning. Equivalence Partitions are also known as equivalence classes – the two terms mean exactly the same thing. In the equivalence-partitioning technique, we need to test only one condition from each partition. This is because we are assuming that all…