Skip to content
← All CTFL glossary terms

Coverage

The degree to which identified coverage items (e.g. requirements, partitions, branches) have been exercised by a test suite, usually as a percentage.

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

Coverage in a practice question

Question 1

An input field accepts integer order quantities: Quantities from 1 to 100 are processed at the standard rate. Quantities from 101 to 500 are processed with a bulk surcharge. Any other quantity is rejected. Using equivalence partitioning, and including the invalid partitions, how many partitions must the test cases cover?

  1. 3
  2. 4
  3. 5
  4. 6
Show answer
  • 3Three would treat the two valid ranges as a single partition.
  • Correct answer: 4Two valid partitions and two invalid partitions.
  • 5Five would split one of the four partitions without a rule requiring it.
  • 6Six would add partitions the specification does not distinguish.

In equivalence partitioning the coverage items are the equivalence partitions, and 100% coverage requires test cases to exercise all identified partitions, including the invalid ones, at least once. The field has two valid partitions, 1 to 100 and 101 to 500, and two invalid partitions, quantities below 1 and quantities above 500 — four in total.

Syllabus section 4.2.1

Question 2

A loan application system evaluates three conditions: Condition 1: the applicant is an existing customer. Condition 2: the applicant's credit score is above 700. Condition 3: the applicant requests more than 50,000. Any combination in which the applicant is not an existing customer and requests more than 50,000 is infeasible, because only existing customers may request that amount. The full decision table covers every combination of the three conditions. After the infeasible columns are deleted, how many columns remain to be exercised?

  1. 4
  2. 5
  3. 6
  4. 8
Show answer
  • 4This would delete four columns; only the two with Condition 1 false and Condition 3 true are infeasible.
  • 5This deletes three columns, but Condition 2 is free in only two of them.
  • Correct answer: 68 full columns minus the 2 infeasible ones leaves 6 feasible columns.
  • 88 is the size of the full table before the infeasible columns are deleted.

A full decision table has enough columns to cover every combination of conditions, so three Boolean conditions give 2 x 2 x 2 = 8 columns. The infeasible combination fixes Condition 1 as false and Condition 3 as true, while Condition 2 remains free, which describes 2 of those columns. Deleting them leaves 6 feasible columns, and in decision table testing the coverage items are exactly the columns containing feasible combinations.

Syllabus section 4.2.3

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