![]() |
VOOZH | about |
Boundary Value Analysis (BVA) is a black-box testing technique that focuses on testing the boundary values (edges) of valid and invalid input ranges. It helps identify errors that commonly occur at the limits of input conditions.
For each input variable, Boundary Value Analysis (BVA) tests values at and around the boundary limits to ensure that the system behaves correctly under edge conditions.
Consider a system that accepts ages from 18 to 56.
Boundary Value Analysis ( Age accepts values from 18 to 56 ) | ||
|---|---|---|
Invalid (min-1) | Valid (min, min + 1, nominal, max - 1, max) | Invalid (max + 1) |
17 | 18, 19, 37, 55, 56 | 57 |
Boundary Value Analysis (BVA) is a testing technique that focuses on checking values at the boundaries of input ranges. It helps detect errors that commonly occur at the edges of valid input limits.
Tests only valid boundary values within the specified input range, ensuring that the system behaves correctly at the minimum, maximum, and values just inside the acceptable limits.
Tests both valid and invalid boundary values around the limits, including values just below the minimum and just above the maximum, to verify how the system handles out-of-range inputs.
Tests combinations of boundary values for multiple input variables, ensuring that the system can handle different boundary conditions together and behave correctly under combined input scenarios.
Combines worst case and robust testing approaches to achieve maximum coverage by testing both valid and invalid boundary value combinations across multiple input variables.
Single Fault Assumption is a concept in Boundary Value Analysis where only one input variable is tested at its boundary values while all other variables are kept at normal values. It is based on the idea that most defects occur due to a single faulty condition at a time.
Consider a program for determining the previous date.
Input: Day, Month, Year with valid ranges as
1 ≤ Month ≤ 12
1 ≤ Day ≤ 31
1900 ≤ Year ≤ 2000
Taking the year as a Single Fault Assumption i.e. year will be having values varying from 1900 to 2000 and others will have nominal values.
Test Cases | Month | Day | Year | Output |
|---|---|---|---|---|
1 | 6 | 15 | 1900 | 14 June 1900 |
2 | 6 | 15 | 1901 | 14 June 1901 |
3 | 6 | 15 | 1960 | 14 June 1960 |
4 | 6 | 15 | 1999 | 14 June 1999 |
5 | 6 | 15 | 2000 | 14 June 2000 |
Taking Day as Single Fault Assumption i.e. Day will be having values varying from 1 to 31 and others will have nominal values.
Test Case | Month | Day | Year | Output |
|---|---|---|---|---|
6 | 6 | 1 | 1960 | 31 May 1960 |
7 | 6 | 2 | 1960 | 1 June 1960 |
8 | 6 | 30 | 1960 | 29 June 1960 |
9 | 6 | 31 | 1960 | Invalid day |
Taking Month as Single Fault Assumption i.e. Month will be having values varying from 1 to 12 and others will have nominal values.
Test Case | Month | Day | Year | Output |
|---|---|---|---|---|
10 | 1 | 15 | 1960 | 14 Jan 1960 |
11 | 2 | 15 | 1960 | 14 Feb 1960 |
12 | 11 | 15 | 1960 | 14 Nov 1960 |
13 | 12 | 15 | 1960 | 14 Dec 1960 |
For n variables, a maximum of 4n + 1 test cases are required. Therefore, for n = 3, the maximum number of test cases is: 4 × 3 + 1 = 13.
Boundary Value Analysis (BVA) is widely used in real-world applications to detect errors at input limits. It helps ensure systems behave correctly under boundary conditions.
Boundary Value Analysis (BVA) is an effective testing technique used to identify errors at the boundaries of input values. It improves testing efficiency by focusing on critical edge cases.
Boundary Value Analysis (BVA) is effective when boundaries are properly identified and tested. It helps detect errors at edge values and improves test coverage.