Skip to content
← All CTFL glossary terms

Boundary value analysis

A black-box technique that tests the minimum and maximum values of ordered equivalence partitions, where defects are most likely.

Syllabus chapters: 4

Sources: ISTQB® Certified Tester Foundation Level syllabus 4.0.1 and the official ISTQB® Glossary. Glossary content © International Software Testing Qualifications Board; source: glossary.istqb.org.

Related terms

Boundary value analysis in a practice question

Question 1

A password must be 8 to 20 characters long. Applying 2-value boundary value analysis to the length, which set of lengths must be tested?

  1. 7, 8, 20, 21
  2. 8, 9, 19, 20
  3. 1, 8, 20, 100
  4. 7, 9, 19, 21
Show answer
  • Correct answer: 7, 8, 20, 212-value BVA tests each boundary (8, 20) and its nearest invalid neighbor (7, 21).
  • 8, 9, 19, 20These are interior values, not the boundary-plus-neighbor pairs 2-value BVA requires.
  • 1, 8, 20, 1001 and 100 are arbitrary interior/invalid values, not the boundaries and their neighbors.
  • 7, 9, 19, 219 and 19 lie inside the partition, not on the boundaries 8 and 20 themselves.

In 2-value BVA, each boundary value and its closest neighbor in the adjacent partition are tested. The boundaries of the valid partition are 8 and 20; their invalid neighbors are 7 and 21. So the required lengths are 7, 8, 20, and 21.

Syllabus section 4.2.2

Question 2

A bonus is paid for sales amounts from 1,000 to 4,999 (in whole units of currency). Using 3-value boundary value analysis on the lower boundary only, which values must be tested?

  1. 999, 1000, 1001
  2. 1000, 1001, 1002
  3. 998, 999, 1000
  4. 999 and 1000 only
Show answer
  • Correct answer: 999, 1000, 10013-value BVA tests the boundary 1000 together with both neighbors, 999 and 1001.
  • 1000, 1001, 1002This omits 999 below the boundary and adds 1002, which is not a neighbor of 1000.
  • 998, 999, 1000This omits 1001 above the boundary and adds 998, which is not a neighbor of 1000.
  • 999 and 1000 only3-value BVA needs three values; this gives only two and omits 1001.

In 3-value BVA, each boundary is tested together with both of its neighbors. For the lower boundary 1000, the values are 999 (below), 1000 (the boundary), and 1001 (above).

Syllabus section 4.2.2

Original PrepBench practice material, not official exam questions or exam dumps. PrepBench is independent and is not affiliated with or endorsed by ISTQB®.