What test design is and how it works
Test design is the stage after analysis in which test conditions are turned into test cases with input data and an expected result. Test design techniques systematically produce a small but sufficient set of tests.
Test design is needed almost always: exhaustive testing is impossible except in trivial cases. An “age” field accepts thousands of values, while equivalence partitions and boundary values reduce them to a few tests, each checking its own part of the rule. Black-box techniques rely on the specification, white-box techniques on the code, and experience-based techniques complement both and find defects that the others miss.
According to the CTFL, testing consists of groups of activities: planning, monitoring and control, analysis, design, implementation, execution and completion. They often run in iterations or in parallel. Analysis studies the test basis (requirements, user stories) and answers the question “what to test” by identifying test conditions. Test design answers “how to test”: it turns conditions into test cases, identifies coverage items and determines the data and environment needed. Implementation assembles test cases into procedures and suites, and execution produces results.
Traceability is maintained between the basis and everything derived from it: requirement → test condition → test case → result → defect. It shows whether requirements are covered by tests, what a change to a requirement will affect and what risk remains, and it makes progress reports clear to stakeholders.
Groups of techniques
The CTFL divides techniques into three groups: black-box, white-box and experience-based. Collaboration-based approaches stand apart: their aim is not only to find a defect but to prevent it.
| Group | What it relies on | Examples | When to use |
|---|---|---|---|
| Black-box | specified behaviour of the object, without looking at its internal structure | equivalence partitioning, boundary value analysis, decision tables, state transition testing | requirements exist; tests do not become outdated when the implementation changes |
| White-box | internal structure: code and processing logic | statement and branch testing | the code is already written and you need to know which part of it was executed |
| Experience-based | the knowledge and experience of the tester | error guessing, exploratory testing, checklist-based testing | in addition to the first two: they find what those miss |
| Collaboration-based | joint work of the customer, developers and testers | collaborative user story writing, acceptance criteria, ATDD | before development, so that the defect never appears |
What you need to know first
- The terms “error”, “defect”, “failure”, “test case” and “coverage” are covered in the “Core testing concepts” section of this reference
- For white-box techniques, the ability to read code: conditions, loops and functions (the Python reference)
How to turn test cases into automated tests is described in the pytest and Playwright references, and what to check in an HTTP API in the “API testing” reference.
Section sources
the section is written from these pages- ISTQB Certified Tester Foundation Level Syllabus v4.0.1istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf(opens in a new tab)
- ISTQB Certified Tester Foundation Level Syllabus v4.0.1istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf(opens in a new tab)
- ISTQB Certified Tester Foundation Level Syllabus v4.0.1istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf(opens in a new tab)
- ISTQB Certified Tester Foundation Level Syllabus v4.0.1istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf(opens in a new tab)
- ISTQB Certified Tester Foundation Level Syllabus v4.0.1istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf(opens in a new tab)