Derive Test Scenarios
Purpose
Produce a complete, traceable list of what must be verified for a requirement, at scenario level, before detailed test cases are written. Scenarios make coverage gaps visible and are cheap to review with the product owner.
When to use
- A story, use case or requirement set is ready for test design.
- The team wants to review coverage with business before writing detailed cases.
- Acceptance criteria exist but only describe the happy path.
When not to use
- You need step-by-step cases with data and expected results. Use
test-case-writing.
- The requirements are still vague. Run
testability-review first.
- You need executable Gherkin. Use
bdd-feature-file.
Inputs
Required:
- The requirement, story, use case or acceptance criteria.
Optional, improves quality:
- Business rules, UI designs, API contracts, roles and permissions, related NFRs.
- Known defects or incidents in this area.
If the requirement is missing, ask for it. Unclear behavior becomes an open question, not an invented expectation.
Process
- Extract testable conditions: each business rule, input, state, role, output and integration mentioned or implied.
- Write the main success scenario(s) covering each acceptance criterion at least once.
- Add alternative flows: valid variations (different payment types, optional fields, other roles).
- Add negative scenarios: invalid input, rule violations, unauthorized access, wrong state (e.g. action after a deadline or status change).
- Add edge scenarios using boundaries, empty/max values, time (cut-off times, time zones, month end), concurrency (two users, double submit), idempotency.
- Add integration scenarios: downstream failure, timeout, partial success, retries, message duplication.
- Add relevant non-functional scenarios: audit log, notifications, accessibility of new UI, performance of heavy operations, data privacy.
- Give each scenario an ID, source reference (criterion, rule) and priority (High/Medium/Low from risk).
- Check coverage: every acceptance criterion and business rule maps to at least one scenario; list uncovered items.
- List open questions where expected behavior is not defined.
- Label inferred behavior
[ASSUMPTION]; if the user continues, suggest test-case-writing for detailed cases or bdd-feature-file for Gherkin.
Output format
# Test Scenarios: <feature / story ID>
| ID | Scenario | Type | Source | Priority |
|---|---|---|---|---|
| TS-01 | <Verify that ... when ...> | Positive / Negative / Edge / Permission / Integration / NFR | AC-1, BR-2 | H |
## Coverage
| Source item | Scenarios |
Uncovered: <items or "none">
## Open Questions
1. <undefined behavior> — <scenario affected>
Quality checklist
Common pitfalls
- Writing test cases instead of scenarios. Keep it to one line of intent; details belong in
test-case-writing.
- Covering only UI paths. Include state changes, integrations and asynchronous effects (emails, refunds, events).
- Forgetting time-dependent rules such as cut-offs and status transitions.
Example
Input: "Customer can cancel an order until it is shipped; refund to original payment method."
Excerpt of output:
| TS-01 | Cancel an unshipped card-paid order → order cancelled, full refund to card | Positive | AC-1 | H |
| TS-04 | Cancel an order already shipped → cancel rejected with message | Negative | AC-1 | H |
| TS-07 | Cancel while shipment status changes at the same moment | Edge | AC-1 | M |
| TS-09 | Refund provider times out → order state and retry behavior | Integration | AC-2 | H |
- Open question: Partially shipped orders: cancel remaining items or reject?
1---2name: test-scenarios-from-requirements3description: "Derives high-level test scenarios (positive, negative, edge, permission, integration and non-functional) from requirements, user stories, use cases or acceptance criteria, with traceability to the source and a priority for each. Use when test design starts for a feature, when checking coverage of a story, or when someone asks what should be tested for a requirement."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/test-scenarios-from-requirements7 version: "1.0.0"8 language: en9 category: 06-quality10 role: qa-analyst11 area: design12 title: "Derive test scenarios"13 related: "test-case-writing, testability-review, equivalence-boundary-analysis, traceability-matrix, bdd-feature-file"14 prompt: "Derive test scenarios for this story: a customer can cancel an order until it is shipped and gets a refund to the original payment method."15---1617# Derive Test Scenarios1819## Purpose20Produce a complete, traceable list of what must be verified for a requirement, at scenario level, before detailed test cases are written. Scenarios make coverage gaps visible and are cheap to review with the product owner.2122## When to use23- A story, use case or requirement set is ready for test design.24- The team wants to review coverage with business before writing detailed cases.25- Acceptance criteria exist but only describe the happy path.2627## When not to use28- You need step-by-step cases with data and expected results. Use `test-case-writing`.29- The requirements are still vague. Run `testability-review` first.30- You need executable Gherkin. Use `bdd-feature-file`.3132## Inputs33Required:34- The requirement, story, use case or acceptance criteria.3536Optional, improves quality:37- Business rules, UI designs, API contracts, roles and permissions, related NFRs.38- Known defects or incidents in this area.3940If the requirement is missing, ask for it. Unclear behavior becomes an open question, not an invented expectation.4142## Process431. Extract testable conditions: each business rule, input, state, role, output and integration mentioned or implied.442. Write the main success scenario(s) covering each acceptance criterion at least once.453. Add alternative flows: valid variations (different payment types, optional fields, other roles).464. Add negative scenarios: invalid input, rule violations, unauthorized access, wrong state (e.g. action after a deadline or status change).475. Add edge scenarios using boundaries, empty/max values, time (cut-off times, time zones, month end), concurrency (two users, double submit), idempotency.486. Add integration scenarios: downstream failure, timeout, partial success, retries, message duplication.497. Add relevant non-functional scenarios: audit log, notifications, accessibility of new UI, performance of heavy operations, data privacy.508. Give each scenario an ID, source reference (criterion, rule) and priority (High/Medium/Low from risk).519. Check coverage: every acceptance criterion and business rule maps to at least one scenario; list uncovered items.5210. List open questions where expected behavior is not defined.5311. Label inferred behavior `[ASSUMPTION]`; if the user continues, suggest `test-case-writing` for detailed cases or `bdd-feature-file` for Gherkin.5455## Output format56```markdown57# Test Scenarios: <feature / story ID>58| ID | Scenario | Type | Source | Priority |59|---|---|---|---|---|60| TS-01 | <Verify that ... when ...> | Positive / Negative / Edge / Permission / Integration / NFR | AC-1, BR-2 | H |6162## Coverage63| Source item | Scenarios |64Uncovered: <items or "none">6566## Open Questions671. <undefined behavior> — <scenario affected>68```6970## Quality checklist71- [ ] Every acceptance criterion and business rule is covered by at least one scenario.72- [ ] Negative and edge scenarios outnumber or at least equal happy-path scenarios for high-risk features.73- [ ] Each scenario states a single intent and a condition, not steps.74- [ ] No expected behavior is invented; unclear ones are open questions.75- [ ] Priorities reflect risk, not order of appearance.76- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.7778## Common pitfalls79- Writing test cases instead of scenarios. Keep it to one line of intent; details belong in `test-case-writing`.80- Covering only UI paths. Include state changes, integrations and asynchronous effects (emails, refunds, events).81- Forgetting time-dependent rules such as cut-offs and status transitions.8283## Example84Input: "Customer can cancel an order until it is shipped; refund to original payment method."8586Excerpt of output:87| TS-01 | Cancel an unshipped card-paid order → order cancelled, full refund to card | Positive | AC-1 | H |88| TS-04 | Cancel an order already shipped → cancel rejected with message | Negative | AC-1 | H |89| TS-07 | Cancel while shipment status changes at the same moment | Edge | AC-1 | M |90| TS-09 | Refund provider times out → order state and retry behavior | Integration | AC-2 | H |91- Open question: Partially shipped orders: cancel remaining items or reject?