A boundary value analysis is when you look at a condition to understand its limitations while equivalence partitioning...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
helps you group tests in order to select a manageable number of tests. Let's look at boundary analysis first. It's important to recognize that boundaries have lower limits as well as upper limits -- I point out lower boundaries because I often see testers focusing on maximum capacity but forgetting about lower boundaries. A simple boundary analysis would be the review of a single data entry field to determine its limits. In such an example, a lower limit might be that the data entry field is a required field so tests might include attempting to leave the field blank or using the space bar to create an entry. The upper limit tests might include attempting to enter more characters than the field accepts and attempting to exceed the field value in through any method available. I've sometimes exceeded field limits during the import of data in situations where the direct data entry page of an application does a fine job of upholding the limits, but import may not.
Equivalence partitioning is when you examine multiple values to determine where tests overlap or additional tests would not likely provide more value. Let's stay with a single data entry field as an example and imagine the field size is 15 characters and that the data entry field is for the entry of a person's first name. The upper boundary tests would include testing with 14, 15, and 16 characters -- effectively testing before, on and exceeding (or attempting to exceed) the maximum. Your equivalence partitioning might determine that the entries of a single character such as the letter a, b, or c will test the data entry field equally and therefore testing the data entry of every alpha character is not necessary. You might conclude that all alpha or numeric entries are of equal class, meaning you have no reason to suspect one character or one digit will cause a particular issue. You use this method to reduce the number of tests you need to execute.
To stay with this example, you might decide that special characters such as umlauts and accents may need to be tested. These special characters might include characters encountered with names while you also decide that other special characters not associated with people's names can be categorized into another group. This is equivalence partitioning. By grouping values into a partition you reduce the number of tests.
This example show how boundary value analysis and equivalent partition analysis work together. It's a case of looking for limits and then restricting the number of tests to a manageable set. This example was incredibly simple; most applications have numerous complex boundary conditions. Consider boundaries such as printing reports using volumes of data. Boundaries can be exposed in print buffers or boundaries in exporting data where an application allows a larger entry in a field than can be exported in a CSV formatted file.
These are just two more examples. There can be many undefined and unrealized boundaries until a defect is found exposing new limitations. And equivalence partitioning can help you narrow the number of tests you need to execute in order to expose boundaries.
There are many good resources on the subject as well. Let me point out some references for further reading and learning.
These are valuable areas to learn about because both boundary analysis and equivalence partitioning analysis transcend specific technologies or subject matters.
Dig Deeper on Software Testing and QA Fundamentals
Related Q&A from Karen N. Johnson
There are so many resources out there about the ever-changing world of Web design and mobile testing, but to choose the most salient and insightful ...continue reading
In this expert response, consultant Karen Johnson describes strategies she uses for browser compatibility testing. Experience and knowledge of common...continue reading
Initiating test automation on your project team may seem challenging, or even overwhelming. Fortunately, expert Karen Johnson has been through this ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.