Boundary-value analysis is used to test the boundary of a process. For instance, say we have a process which can take inputs between 1 and 100. How can we test the process with the minimal amount of test cases (in most work environments it is hard enough to get enough time to test the cases needed).
What we want to do, to test this process, is to test the boundary or edge condition. The boundaries of this process are 1 and 100, therefore if we test integers around 1 and 100, we would be testing the boundary.
In order to test any boundary, fully, you would need three test cases:
- Out side the boundary
- Exactly on the boundary
- In side the boundary
By using boundary-value analysis we are able to limit the number of test cases and fully test the boundary of a process.