本文へ移動
cccskills
無料GitHub で公開

decision-table-test-design

Derives human-readable manual test cases from a business-rule spec via a decision table: identify conditions and actions, build the full 2^n-column matrix, collapse columns with irrelevant entries, strike infeasible combinations, then emit one test case per remaining column (each feasible column is one coverage item per ISTQB CTFL v4.0 section 4.2.3). A deep single-technique walkthrough rather than a broad multi-lens case matrix; the output is manual step/expected cases rather than parameterized test code, and it covers how cases are derived rather than how a case record is structured. Use when a spec's outcome depends on interacting conditions (pricing, eligibility, discounts, routing rules) rather than the boundaries of a single input.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qaスター 13(GitHub 13 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(23)

  • SKILL.md10.1 KB
  • .tessl-plugin/plugin.json890 B
  • evals/checked-baggage-fees/criteria.json4.1 KB
  • evals/checked-baggage-fees/task.md2.6 KB
  • evals/claim-auto-approval/criteria.json4.6 KB
  • evals/claim-auto-approval/task.md6.3 KB
  • evals/freight-surcharge-quote/criteria.json4.4 KB
  • evals/freight-surcharge-quote/task.md5.3 KB
  • evals/lab-door-access/criteria.json5.0 KB
  • evals/lab-door-access/task.md5.4 KB
  • evals/loan-rate-card/criteria.json4.9 KB
  • evals/loan-rate-card/task.md6.1 KB
  • evals/loyalty-discount-stacking/criteria.json4.2 KB
  • evals/loyalty-discount-stacking/task.md2.5 KB
  • evals/mobile-data-overage/criteria.json4.7 KB
  • evals/mobile-data-overage/task.md6.3 KB
  • evals/payment-failure-runbook/criteria.json4.5 KB
  • evals/payment-failure-runbook/task.md3.0 KB
  • evals/subscription-refund-policy/criteria.json4.0 KB
  • evals/subscription-refund-policy/task.md2.5 KB
  • evals/weekly-overtime-pay/criteria.json4.7 KB
  • evals/weekly-overtime-pay/task.md6.9 KB
  • references/decision-table-details.md2.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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:

IDConditions (Boolean)
C1Customer is a premium member
C2Order total is $50 or more
C3Express shipping selected
IDActions
A1Charge $0.00 (free shipping)
A2Charge $5.99 standard fee
A3Charge $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:

R1R2R3R4R5R6R7R8
C1 memberTTTTFFFF
C2 total >= $50TTFFTTFF
C3 expressTFTFTFTF
A1 freeXX?XX?
A2 $5.99X
A3 $14.99X?

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, express) look mergeable on the same logic, but R3 and R7 are the columns flagged ? in Step 2. Hold both merges until the feasibility check.

Step 4 - Spot infeasible combinations

"The table can be simplified by deleting columns containing infeasible combinations of conditions" (§4.2.3).

Re-read the spec for constraints that make condition combinations unreachable. Here: express is never offered below $50, so C3 = T with C2 = F cannot occur. R3 and R7 are infeasible; delete them. That kills the held merges from Step 3: C2 is not irrelevant in the express columns, because only one of its values is reachable there. A naive R1 + R3 merge would have produced a test case for an impossible state.

Final collapsed table (5 feasible columns):

P1P2P3P4P5
C1 memberTTFFF
C2 total >= $50T-TTF
C3 expressTFTFF
A1 freeXXX
A2 $5.99X
A3 $14.99X

The infeasible columns are not test-less: add one constraint check outside the table that verifies the infeasibility itself holds (the express option is absent from checkout below $50). If that check fails, the table must be rebuilt with R3/R7 feasible.

Step 5 - One test case per remaining column

Per §4.2.3, "the coverage items are the columns containing feasible combinations of conditions", 100% coverage means test cases "exercise all these columns", and "coverage is measured as the number of exercised columns, divided by the total number of feasible columns". Here: 5 feasible columns = 5 coverage items; the 5 cases below = 100% decision table coverage (5/5).

For a dash entry, pick one concrete value (P2 below uses $20; pairing with BVA would add $49.99/$50.00 around the threshold).

TC IDColumnSetupActionExpected result
TC-DT-1P1Member account; cart total $80.00Select express at checkoutShipping line shows $0.00; order total unchanged
TC-DT-2P2Member account; cart total $20.00Select standard at checkoutShipping line shows $0.00
TC-DT-3P3Non-member account; cart total $80.00Select express at checkoutShipping line shows $14.99
TC-DT-4P4Non-member account; cart total $80.00Select standard at checkoutShipping line shows $0.00
TC-DT-5P5Non-member account; cart total $20.00Select standard at checkoutShipping line shows $5.99
TC-DT-6(constraint)Non-member account; cart total $20.00Open shipping options at checkoutExpress option is not offered

Each row expands into a full runnable script (preconditions, per-step expected results, sign-off) via manual-test-script-author; this skill's output is the derivation plus the case table above.

Extended-entry tables and anti-patterns

The limited-entry vs extended-entry table forms (when to collapse correlated numeric conditions into one row) and the technique's anti-patterns table are in references/decision-table-details.md.

Limitations

  • Stateless rules only. Decision tables model input-combination logic. If the outcome depends on history (what happened before this event), use state-transition-test-design.
  • Combination coverage, not boundary coverage. A column says "total >= $50 is true"; it does not test $49.99 vs $50.00. Pair each threshold with boundary-value-generator.
  • Minimization is informal here. Formal minimization algorithms are out of CTFL scope per §4.2.3; for large tables expect to lean on risk-based selection rather than perfect minimal form.

References

  • ISTQB CTFL Syllabus v4.0.1, §4.2.3 Decision Table Testing - istqb.org PDF (official syllabus, fetched 2026-06-10; all quoted phrases above are from this section).
  • ISTQB Glossary term "decision table testing" exists at glossary.istqb.org but the site blocks non-browser fetches; cite the syllabus section above as the stable source.
  • Siblings: state-transition-test-design (stateful behavior), manual-test-script-author (expands derived cases into runnable scripts).
  • Neighbors this skill is distinct from: test-case-ideation-from-story, boundary-value-generator, test-case-anatomy-reference.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Builds a CI gate that fails the build on **new** WCAG / a11y violations introduced by a PR while grandfathering pre-existing violations on a per-rule / per-page baseline. Aggregates verdicts from axe-core / pa11y / Lighthouse a11y / WAVE / IBM Equal Access scans. Use when a project has accumulated a11y debt and a strict "zero violations" gate would block every PR - the ratchet pattern lets the team ship while preventing regressions.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Workflow skill that builds an A/B-test validity checklist from an experiment proposal, walking the canonical design-correctness gates - pre-registered OEC/power/guardrails, randomization unit + SRM check, assignment integrity, telemetry, peeking discipline, novelty/primacy, post-experiment SRM re-check - into a per-experiment checklist + sign-off form. Use when launching, auditing, or governing an experiment. For pitfall mechanics (guardrails, peeking) see experiment-results-interpreter's references; to read an already-valid result use experiment-results-interpreter; for per-SDK harness tests use experiment-sdk-testing - this gates DESIGN, not SDK code.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

The single install-flow skill: the reference contract for the PWA install flow (installability gate fields, `beforeinstallprompt` handshake, per-platform paths - Android WebAPK / iOS Share menu / Firefox no-op - and the `display-mode` post-install signal, in references/install-flow-reference.md) plus the build-an-X workflow that emits the Add-to-Home-Screen suite. Walks the four-stage timeline, emitting one test per gate cell per [web.dev/articles/install-criteria][install-criteria], the deferred-prompt → `prompt()` → `userChoice` chain per [web.dev/articles/customize-install][customize-install], the iOS Safari manual-metadata branch (`apple-touch-icon`) per [web.dev/learn/pwa/installation][learn-pwa], and the post-install `(display-mode: standalone)` MQ assertion. Output: a Playwright spec with per-stage cells plus a coverage matrix. Use when a PWA's manifest, icons, or install handler change, when install conversion drops at an unknown stage, or when triaging a flaky install assertion.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Build-an-X workflow that uses an LLM to map existing tests to spec sections - given a spec doc + the test suite, the LLM identifies which tests cover which sections, surfaces uncovered sections (gap), and recommends specific tests to add. Output is a coverage matrix per spec ID. Scope is mapping tests that already exist and naming the gaps, not authoring tests for new acceptance criteria. Use when a spec doc and a test suite both exist but nobody can say which requirements are actually covered - before a release sign-off, an audit, or a decision about where to spend the next round of test effort.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Generates tests from natural-language specs (acceptance criteria, user stories, requirements) using an LLM, with confidence scoring per test case (LLM self-assessment plus heuristics: assertion quality, naming, completeness), batching uncertain cases for human review, and integration with the team's existing test framework. Use when the user asks to generate unit tests from acceptance criteria, convert user stories to test cases, automate test creation from requirements, or augment a spec-driven test suite with AI-generated stubs that are then curated before merge.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Configures Allure Report (test-runner adapter install, `allure-results` directory wiring, `categories.json` for failure classification, `history-trend.json` retention via the copy-history-between-runs pattern), runs the Allure CLI to convert `allure-results` to a static HTML site, and uploads the report as a CI artifact. Use when the team needs richer test reporting than JUnit XML - step-level attachments, per-test history, retry tracking, and severity / epic / feature labeling across framework-agnostic adapters (pytest, Jest, JUnit, TestNG, NUnit, Mocha). As a rich static HTML report generator, it is the open-source alternative to the sunset ExtentReports (JVM/.NET per-test HTML narrative); for hosted cross-run flakiness analytics rather than a static per-run report use currents-integration.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

testland のスキルをすべて見る

このスキルの問題を報告する