Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

state-transition-test-design

БесплатноБез исполняемых скриптовНе проверен

Derives human-readable manual test cases from stateful behavior: identify states, events, transitions, and guard conditions, draw the state table including…

testlandот testland★ 18 звёзд на GitHub

Об этом скилле

state-transition-test-design

Overview

Per ISTQB CTFL Syllabus v4.0.1 §4.2.4, "a state diagram models the behavior of a system by showing its possible states and valid state transitions. A transition is initiated by an event, which may be additionally qualified by a guard condition." This skill walks the derivation end to end: stateful spec in, human-readable manual test cases out (event sequences with per-step expected states, not code).

CTFL claims below come from the official v4.0.1 PDF (2024-09-15) fetched from istqb.org on 2026-06-10; the N-switch material comes from the CTAL-TA v4.0 syllabus §3.2.2 (fetched 2026-06-10). One worked example (account lockout) is carried through every step.

When to use

State transition testing fits wherever "the reaction of the system to an event depends on the current state of the system" - the CTAL-TA syllabus names "embedded systems, dialog-based systems, control systems, or systems that deal with entities and their lifecycles" as canonical stateful systems (CTAL-TA v4.0 §3.2.2). In web/product QA that means:

  • Lifecycle entities: accounts, orders, subscriptions, tickets, documents with draft/review/published states.
  • Workflows: approval chains, payment flows, onboarding.
  • UI wizards: multi-step forms where back/skip/cancel behavior depends on the current step.

If behavior is stateless rule logic (same input always gives the same output), use decision-table-test-design instead. For a broad multi-lens first pass over a story, use test-case-ideation-from-story (in the qa-process plugin); this skill is the deep walkthrough of one technique.

Worked example spec (used in every step)

Account lockout. An Active account locks after the 3rd consecutive failed login (a lockout email is sent); a successful login resets the failure counter. An admin can unlock a Locked account (counter resets), suspend an Active account, reinstate a Suspended account, and close an Active, Locked, or Suspended account. Closed is terminal. Locked and Suspended accounts reject all logins.

Step 1 - Identify states, events, transitions, guards

§4.2.4 gives the transition labeling syntax event [guard condition] / action, where "guard conditions and actions can be omitted if they do not exist or are irrelevant for the tester" (CTFL v4.0.1).

States (4): Active, Locked, Suspended, Closed.

Events (6, counting guarded variants separately): login-success, login-fail [fails < 3], login-fail [3rd consecutive], admin-unlock, admin-suspend, admin-close. The same raw event (login-fail) splits into two columns because its guard changes the target state; per §4.2.4 the table columns are "events (together with guard conditions if they exist)".

Valid transitions (9):

ID From Label To
t1 Active login-success / reset fail counter Active
t2 Active login-fail [fails < 3] / increment counter Active
t3 Active login-fail [3rd consecutive] / send lockout email Locked
t4 Active admin-suspend Suspended
t5 Active admin-close Closed
t6 Locked admin-unlock / reset fail counter Active
t7 Locked admin-close Closed
t8 Suspended admin-unlock Active
t9 Suspended admin-close Closed

This table doubles as the state diagram in markdown form: every row is one labeled arrow.

Step 2 - Draw the state table (states x events, invalid cells included)

Per §4.2.4, "a state table is a model equivalent to a state diagram. Its rows represent states, and its columns represent events... Table entries (cells) represent transitions, and contain the target state, as well as the resulting actions, if defined. In contrast to the state diagram, the state table explicitly shows invalid transitions, which are represented by empty cells" (CTFL v4.0.1).

Empty cells are marked -- below for readability:

State \ Event login-success login-fail [fails < 3] login-fail [3rd] admin-unlock admin-suspend admin-close
Active Active / reset (t1) Active / increment (t2) Locked / email (t3) -- Suspended (t4) Closed (t5)
Locked -- -- -- Active / reset (t6) -- Closed (t7)
Suspended -- -- -- Active (t8) -- Closed (t9)
Closed -- -- -- -- -- --

Count: 4 states x 6 event columns = 24 cells; 9 valid transitions, 15 invalid. "Invalid" means the model defines no state change for that event in that state, not that the event cannot physically arri

Полный SKILL.md на GitHub

Установить state-transition-test-design в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.tessl-plugin/plugin.jsonevals/contract-countersign-routing/criteria.jsonevals/contract-countersign-routing/task.mdevals/exam-attempt-coverage-claim/criteria.jsonevals/exam-attempt-coverage-claim/task.mdevals/gift-card-redemption-rules/criteria.jsonevals/gift-card-redemption-rules/task.mdevals/loan-underwriting-visible-states/criteria.jsonevals/loan-underwriting-visible-states/task.mdevals/onboarding-wizard-post-submit/criteria.jsonevals/onboarding-wizard-post-submit/task.mdevals/parcel-scan-out-of-order/criteria.jsonevals/parcel-scan-out-of-order/task.mdevals/pipeline-cancel-race/criteria.jsonevals/pipeline-cancel-race/task.mdevals/scale-pairing-rejections/criteria.jsonevals/scale-pairing-rejections/task.mdevals/subscription-dunning-lifecycle/criteria.jsonevals/subscription-dunning-lifecycle/task.mdevals/ticket-reopen-sequences/criteria.jsonevals/ticket-reopen-sequences/task.md

FAQ

Что делает скилл state-transition-test-design?

Derives human-readable manual test cases from stateful behavior: identify states, events, transitions, and guard conditions, draw the state table including invalid (empty-cell) transitions, choose a coverage level (all states, valid transitions / 0-switch, transition pairs / 1-switch per Chow, all transitions including invalid ones), then derive one test case per coverage item as an event sequence with per-step expected states (ISTQB CTFL v4.0 section 4.2.4). 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 for lifecycle entities (accounts, orders, subscriptions), workflows, and UI wizards where the response to an event depends on the current state.

Как установить скилл state-transition-test-design?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл state-transition-test-design запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить state-transition-test-design с