# Use Case Testing

> Use this skill when requirements are expressed as actor-system interactions with preconditions, main flows, alternate flows, and postconditions.

- Skill: `jovd83/use-case-testing` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jovd83/use-case-testing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jovd83/use-case-testing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jovd83 (https://skillmd.com/u/jovd83)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jovd83/use-case-testing

---


# Use Case Testing

## Read First

- `./references/use-case-testing.md`
- `./references/test-design-shared-conventions.md`
- `./assets/templates/test-case-table.j2`
- `./assets/templates/test-case.j2`

## Workflow

1. Extract actor, trigger, preconditions, main success scenario, alternate flows, exceptions, and postconditions.
2. Generate at least one scenario for the main flow.
3. Generate separate scenarios for each alternate or exception path that changes system behavior or outcome.
4. Keep the path reference visible in every generated scenario.

## Required Output

- use-case summary
- path inventory
- scenario list or detailed test cases
- coverage note showing which flows are covered

## Guardrails

- Do not rewrite the use case into lower-level rule tables unless the user asks for a secondary pass.
- Do not skip postcondition checks on alternate paths.
