White-box test technique
A test technique based on an analysis of the internal structure and processing of the test object, e.g. statement or branch testing.
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
White-box test technique in a practice question
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?
- The black-box and white-box techniques must have been applied incorrectly, since correct application leaves no such defects
- Experience-based test techniques are complementary and can detect defects the other two techniques may miss
- The senior tester in effect performed white-box testing, since knowledge of past failures is structural knowledge
- 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 module's specification is outdated and in places ambiguous, but the team must still find defects in the module. Which strength of the white-box test techniques applies to exactly this situation?
- They reliably reveal requirements that were never implemented in the software at all
- The entire software implementation is taken into account, even when the specification is vague or outdated
- They can be applied before the test object has been designed or implemented
- They remove the need to derive any test cases from a specification
Show answer
- They reliably reveal requirements that were never implemented in the software at allDefects of omission are the corresponding weakness of white-box testing, not a strength.
- Correct answer: The entire software implementation is taken into account, even when the specification is vague or outdatedThe whole implementation is considered even with a vague or outdated specification.
- They can be applied before the test object has been designed or implementedWhite-box test cases can only be created after the design or implementation exists.
- They remove the need to derive any test cases from a specificationWhite-box techniques complement specification-based testing rather than replacing it.
A fundamental strength that all white-box test techniques share is that the entire software implementation is taken into account during testing, which facilitates defect detection even when the software specification is vague, outdated or incomplete. The corresponding weakness is that if the software does not implement one or more requirements, white-box testing may not detect the resulting defects of omission.
Syllabus section 4.3.3
Original PrepBench practice material, not official exam questions or exam dumps. PrepBench is independent and is not affiliated with or endorsed by ISTQB®.