✅ What is Boundary Value Analysis (BVA)?

Boundary Value Analysis is a black-box testing technique where test cases are designed to include values at the edges of input ranges.

:brain: Why?
Most defects tend to occur at the boundaries of input domains rather than in the center. BVA helps catch off-by-one errors or logic issues near limits.

:blue_book: Basic Principle:

If an input field accepts a value from X to Y, then test the values:

  • Just below the minimum: X - 1 :cross_mark:

  • At the minimum: X :white_check_mark:

  • Just above the minimum: X + 1 :white_check_mark:

  • Just below the maximum: Y - 1 :white_check_mark:

  • At the maximum: Y :white_check_mark:

  • Just above the maximum: Y + 1 :cross_mark:

:brain: Example Scenario

Requirement:
A user must enter an age between 18 and 60 (inclusive).

Input Range: 18 – 60

Test Case ID Input Value Expected Result Reason
TC001 17 Invalid Just below min value
TC002 18 Valid Lower boundary value
TC003 19 Valid Just above lower boundary
TC004 59 Valid Just below upper boundary
TC005 60 Valid Upper boundary value
TC006 61 Invalid Just above max value

:test_tube: Where is BVA used?

  • Form validation (age, amount, date, quantity)

  • Range validation

  • Input fields with numeric limits

  • Sliders, pagination, or scrollbars

  • API validations (min/max length, numeric boundaries)

:white_check_mark: Summary:

Feature Value
Type Black-box Testing Technique
Focus Input boundaries
Goal Catch edge case bugs
Test Count Usually 6 test cases per input field