Skip to content
← All CTFL glossary terms

Black-box test technique

A test technique based on an analysis of the specified behavior of the test object, without reference to its internal structure.

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

Black-box test technique in a practice question

Question 1

A tester derives test cases for a payment service from its documented behaviour without looking at how it is implemented, so the tests stay usable after the code is rewritten. Which category of test technique is this, and why?

  1. White-box, because the tests are based on an analysis of internal structure and processing
  2. Experience-based, because effectiveness depends heavily on the tester's own skills
  3. Black-box, because tests can only be created after the design or implementation exists
  4. Black-box, because tests are based on the specified behaviour, independent of implementation
Show answer
  • White-box, because the tests are based on an analysis of internal structure and processingWhite-box techniques analyse the test object's internal structure, which this tester deliberately ignores.
  • Experience-based, because effectiveness depends heavily on the tester's own skillsExperience-based techniques draw on the tester's knowledge and experience rather than on a specification.
  • Black-box, because tests can only be created after the design or implementation existsThe category is right but the reason is not: it is white-box tests that need the design or implementation first.
  • Correct answer: Black-box, because tests are based on the specified behaviour, independent of implementationThe tests come from the specified behaviour, which is why a rewrite leaves them useful.

Black-box test techniques, also known as specification-based techniques, are based on an analysis of the specified behavior of the test object without reference to its internal structure. The test cases are therefore independent of how the software is implemented, so that if the implementation changes but the required behavior stays the same, the test cases are still useful.

Syllabus section 4.1.1

Question 2

On what basis are black-box test techniques designed?

  1. On the internal code structure of the test object
  2. On the tester's knowledge, experience, and intuition about likely defects
  3. On an analysis of the test basis, such as the requirements
  4. On the statements and branches exercised in the source code
Show answer
  • On the internal code structure of the test objectUsing the internal code structure describes white-box techniques, not black-box ones.
  • On the tester's knowledge, experience, and intuition about likely defectsRelying on the tester's knowledge and intuition describes experience-based techniques.
  • Correct answer: On an analysis of the test basis, such as the requirementsBlack-box techniques derive tests from the test basis, such as the requirements.
  • On the statements and branches exercised in the source codeStatement and branch coverage are white-box measures, not the basis for black-box design.

Black-box (specification-based) techniques derive test cases from an analysis of the test basis, such as requirements and specifications, without reference to internal structure. White-box techniques use the code structure; experience-based techniques draw on the tester's knowledge and intuition.

Syllabus section 4.1.1

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