decision-table-test-design
БесплатноБез исполняемых скриптовНе проверенUse when a spec's outcome depends on several interacting conditions (pricing, eligibility, discounts, routing rules) and needs manual test cases. Builds a…
от testland★ 18 звёзд на GitHubОб этом скилле
decision-table-test-design
Overview
Per ISTQB CTFL Syllabus v4.0.1 §4.2.3, "decision tables are used for testing the implementation of requirements that specify how different combinations of conditions result in different outcomes" and are "an effective way of recording complex logic, such as business rules." This skill walks that derivation end to end: spec in, human-readable manual test cases out (step/expected tables, not code).
All syllabus claims below come from that v4.0.1 PDF (2024-09-15 revision); later references cite it as §4.2.3 without repeating the URL. One worked example (a shipping-fee rule) is carried through every step.
When to use (and when EP/BVA wins)
Use a decision table when the spec is business-rule logic with interacting conditions - the outcome depends on the combination of conditions, not on any single condition alone (pricing, discount stacking, eligibility, approval routing, feature gating). §4.2.3 names a second use: the technique "provides a systematic approach to identify all the combinations of conditions, some of which might otherwise be overlooked" and "helps to find any gaps or contradictions in the requirements", so a reviewer can also run it to check a spec for completeness.
Prefer equivalence partitioning / boundary value analysis instead when a
single input's range drives the behavior (e.g. "age must be 18-120"):
EP/BVA exercises the edges of one partition; a decision table exercises the
cross-product of several conditions. The two compose - derive the rule
columns here, then hand each numeric threshold (like the $50 below) to
boundary-value-generator for edge values. For a broad first-pass matrix
across many lenses rather than one technique in depth, use
test-case-ideation-from-story.
Worked example spec (used in every step)
Shipping fee rules. Premium members always ship free (standard or express). Non-members: standard shipping is free for orders of $50 or more, otherwise $5.99; express shipping is a flat $14.99. Express is only offered at checkout for orders of $50 or more (courier minimum).
Step 1 - Identify conditions and actions
Per §4.2.3, "the conditions and the resulting actions of the system are defined. These form the rows of the table. Each column corresponds to a decision rule that defines a unique combination of conditions, along with the associated actions."
Extract from the spec:
| ID | Conditions (Boolean) |
|---|---|
| C1 | Customer is a premium member |
| C2 | Order total is $50 or more |
| C3 | Express shipping selected |
| ID | Actions |
|---|---|
| A1 | Charge $0.00 (free shipping) |
| A2 | Charge $5.99 standard fee |
| A3 | Charge $14.99 express fee |
Guidance: make each condition atomic (one yes/no question) and independently settable by a tester. "Member with a large order" is two conditions, not one. Every distinct outcome in the spec becomes an action row; if an outcome appears in the spec but in no action row, you mis-extracted.
Step 2 - Build the full table (2^n columns)
"A full decision table has enough columns to cover every combination of conditions" (§4.2.3). For n Boolean conditions that is 2^n columns; here 2^3 = 8.
Notation, per the same section: T means the condition is satisfied,
F not satisfied, a dash (written - here) means the condition's value
"is irrelevant for the action outcome", and N/A means the condition "is
infeasible for a given rule". For actions, X means the action should
occur and blank means it should not. The syllabus adds that "other
notations may also be used."
Fill every column mechanically from the spec:
| R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 | |
|---|---|---|---|---|---|---|---|---|
| C1 member | T | T | T | T | F | F | F | F |
| C2 total >= $50 | T | T | F | F | T | T | F | F |
| C3 express | T | F | T | F | T | F | T | F |
| A1 free | X | X | ? | X | X | ? | ||
| A2 $5.99 | X | |||||||
| A3 $14.99 | X | ? |
R3 and R7 already smell: the spec says express is only offered at $50 or
more, so "express selected on a sub-$50 order" may not be reachable. Mark
them ? for now; Step 4 resolves it. Do not skip building the full
table: the mechanical cross-product is what surfaces the overlooked
combinations §4.2.3 warns about.
Step 3 - Collapse with irrelevant (dash) entries
The table "can also be minimized by merging columns, in which some conditions do not affect the outcome, into a single column" (§4.2.3). (Formal minimization algorithms are explicitly "out of scope of this syllabus"; pairwise inspection is enough at this scale.)
A merge is legal only if every expansion of the dash is feasible and produces identical actions.
- R2 + R4 (member, standard): free either way; C2 does not affect the
outcome. Merge into one column with C2 =
-. Legal. - R1 + R3 (member, express) and R5 + R7 (non-member
Установить decision-table-test-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл decision-table-test-design?
Use when a spec's outcome depends on several interacting conditions (pricing, eligibility, discounts, routing rules) and needs manual test cases. Builds a decision table, collapses irrelevant and impossible combinations and writes one test case per remaining column, per ISTQB.
Как установить скилл decision-table-test-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл decision-table-test-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic