Explain when we can use Equivalence Partitioning with example?
This can be used where we have a large number of test data and the behavior of each test data is expected to be the same. Equivalence partitioning works on the logic if any one test data of a particular partition is valid for the scenario then all other data from the same partition will also be valid and vice versa.
This logic is implemented to speed up the testing with huge number of data inputs.
Let’s consider an example to understand this. Let’s say we have to order a book using e-commerce website. You can either buy only 1 to 10 books at a time. So, what will be our equivalence classes and what would be probable solution to this.
Equivalence classes would be below zero, between 0-10, 11-99 and 100 -999.