Equivalence partitioning (EP)
Since testing all inputs is impossible (principle 2), equivalence partitioning groups inputs into classes where the system is expected to behave the same. Testing one representative value per class is enough. There are valid classes (should be accepted) and invalid ones (should be rejected).
Campo: edad (válida 18–65)
Clase inválida baja : 17 -> rechazar
Clase válida : 30 -> aceptar
Clase inválida alta : 70 -> rechazarPartitions for an age field
Boundary value analysis (BVA)
Defects cluster at the edges of partitions. Boundary value analysis tests exactly the extremes. For the range 18–65, the boundary values to test are 17, 18, 65 and 66.
EP reduces the number of cases; BVA reinforces the edges, where systems fail most. They are used together.
For a valid range of 1 to 100, which boundary values would you test?
A field accepts 1 to 10. Which technique leads you to specifically test 0, 1, 10 and 11?