Updated: 2026-03-25
test-case-writing
Basic Information
Full Skill Guide
When
- Requirement/risk is ready and team needs executable test cases.
- Test coverage must be explicit before development freeze.
- Multiple testers need consistent case quality standard.
What
- Produce complete, reviewable, and executable test cases.
- Cover main flow, edge flow, negative flow, and data variation.
- Ensure each case has clear precondition, action, and expected result.
How
- Derive scenarios from business rule and user journey.
- Split scenarios into atomic test objectives.
- Define data set and environment prerequisites per case.
- Write steps with observable checkpoints.
- Add expected outcomes with verification source.
- Run self-review for ambiguity, duplication, and missing boundaries.
Reference
Positive Example (Input -> Output)
Input:
- Story: apply coupon during checkout, with member/non-member variants
Output:
- Cases for valid coupon, expired coupon, overlap rule, rollback on payment failure
- Explicit expected totals and error messages
- Traceability to requirement clauses
Negative Example (Input -> Output)
Input:
- "Write checkout test cases"
Output (problem):
- High-level bullet list only, no steps, no data, no expected results
- Not executable by another tester
Limits
- Do not produce narrative-only pseudo cases.
- Do not skip failure-path validation.
- Do not mix multiple objectives into one case.
- Do not omit test data and preconditions.
- Do not claim coverage completeness without traceability.
Usage Guide
- Install and enable
test-case-writingfirst (use the install commands in this page). - In your request, provide required context: scope, environment, timeline, and expected output format.
- Trigger with approved requirement + acceptance criteria, for example: "Use
test-case-writingto generate executable test cases." - Specify case format: preconditions, steps, expected result, priority, and traceability id.
- Ask for split outputs: smoke cases first, then full regression cases.
Installation
Platform
AI Tool
Quick install (one line)
Generating command... Full script
Loading script...