Skip to content
← All CTFL learning objectives

CTFL 4.1.1: Distinguish black-box test techniques, white-box test techniques and experience-based test techniques

K2

Syllabus section 4.1

3 original PrepBench practice questions for learning objective 4.1.1 of the CTFL 4.0 syllabus. Try the examples below and check each answer against its syllabus reference.

Practice questions

Question 1

A team has applied black-box and white-box test techniques thoroughly. A senior tester then finds several further defects simply by drawing on how similar applications have failed in the past. What explains that?

  1. The black-box and white-box techniques must have been applied incorrectly, since correct application leaves no such defects
  2. Experience-based test techniques are complementary and can detect defects the other two techniques may miss
  3. The senior tester in effect performed white-box testing, since knowledge of past failures is structural knowledge
  4. Experience-based test techniques supersede the other two once a tester is sufficiently experienced
Show answer
  • The black-box and white-box techniques must have been applied incorrectly, since correct application leaves no such defectsThe syllabus expects some defects to escape the other two categories; that is why these complement them.
  • Correct answer: Experience-based test techniques are complementary and can detect defects the other two techniques may missThey are complementary and can find defects the other two may miss.
  • The senior tester in effect performed white-box testing, since knowledge of past failures is structural knowledgeWhite-box techniques derive tests from internal structure, not from experience of past failures.
  • Experience-based test techniques supersede the other two once a tester is sufficiently experiencedThe syllabus positions them as complementary, never as a replacement.

Experience-based test techniques effectively use the knowledge and experience of testers for the design and implementation of test cases, and can detect defects that may be missed using black-box and white-box test techniques. Hence they are complementary to those two categories. Their effectiveness depends heavily on the tester's skills.

Syllabus section 4.1

Question 2

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 3

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®.

Glossary terms in this chapter