Works with the AI Agents you already use

    Test Case Generator: Traceable Tests from Any Requirement

    by a365ngay

    1

    - Coverage map from each requirement to its tests, with risk and technique.

    Free

    Security scanned
    Test Case Generator: Traceable Tests from Any Requirement

    Test Case Generator: Traceable Tests from Any Requirement

    Example session with this skill installed

    Generate test cases for this story.

    US-1: Apply a voucher code at checkout
    BR1 one voucher per order · BR2 valid from start to end inclusive, store time · BR3 subtotal (before shipping) ≥ minimum · BR4 percentage capped · BR5 discount ≤ subtotal, shipping never discounted · BR6 usage limit counted at order placement
    AC1 WELCOME5 ($5 off, min $30) on a $42.00 cart → "WELCOME5 −$5.00", total $37.00
    AC2 SPRING10 (10%, cap $8, min $30): $30.00 → −$3.00 · $80.00 → −$8.00 · $120.00 → −$8.00
    AC3 WELCOME5: $29.99 → "Spend $0.01 more to use WELCOME5." · $30.00 → applied
    AC4 SPRING10 valid 2027-03-01 00:00 to 2027-03-31 23:59: before → "SPRING10 starts on 01/03/2027." · after → "SPRING10 expired on 31/03/2027."
    AC5 unknown code → "We couldn't find this code. Check it and try again."
    AC6 1000 of 1000 used → "SPRING10 has been fully redeemed."
    AC7 4–20 letters and digits ("Codes use letters and numbers only."), case-insensitive, trimmed, Apply disabled when empty
    Assumption A2: amounts rounded half-up to 2 decimals

    • Read your context and instructions
    • Compiled the test case generator

    Scope

    Applying a voucher on the checkout page (UI and the apply-voucher API behind it). Out of scope: removing or replacing a voucher, re-checking it when the cart changes (US-2), order placement.
    Assumptions: T1 — store time zone is UTC+7 for test data. T2 — a test clock can be set in the test environment.

    Requirement gaps

    • G1 — When several rules fail at once (for example expired and below the minimum), which message is shown? → product owner. Blocks TC-22.
    • G2 — AC7 gives a message for invalid characters but none for a code shorter than 4 or longer than 20. → product owner / UX writer. TC-19 uses draft wording until answered.
    • G3 — Behavior when the voucher service is down or times out is undecided (story Q3). → tech lead. No case until decided.
    • G4 — Rounding is an assumption (A2), not a confirmed rule. TC-06 expects half-up; re-check if A2 changes.

    Coverage map

    ReqRiskCasesTechniques
    AC1HighTC-01Use-case path
    AC2, BR4HighTC-02 – TC-06Boundary values around the cap, rounding
    AC3, BR3HighTC-07, TC-08Boundary values
    AC4, BR2HighTC-09 – TC-12Boundary values, time zone
    AC5MediumTC-13Equivalence partitioning
    AC6, BR6HighTC-14 – TC-16Boundary values, state
    AC7MediumTC-17 – TC-20Equivalence partitioning, boundary values
    BR5MediumTC-21Use-case path
    BR1—not coveredbelongs to US-2 (replace voucher)
    Combined failuresMediumTC-22Decision table → exposed G1

    Test cases

    IDTitleReqTypePriPreconditionsTest dataStepsExpected result
    TC-01Apply fixed voucher on an eligible cartAC1PositiveP1WELCOME5 active, $5 off, min $30subtotal $42.001. Open checkout 2. Enter WELCOME5 3. Click ApplyLine "WELCOME5 −$5.00"; total before shipping $37.00
    TC-02Percentage voucher at the minimum subtotalAC2BoundaryP1SPRING10 active, 10%, cap $8, min $30subtotal $30.00Apply SPRING10Discount −$3.00; total $27.00
    TC-03Percentage voucher exactly at the capAC2, BR4BoundaryP1as TC-02subtotal $80.00Apply SPRING10Discount −$8.00; total $72.00
    TC-04Percentage voucher above the capAC2, BR4BoundaryP1as TC-02subtotal $120.00Apply SPRING10Discount −$8.00 (not $12.00); total $112.00
    TC-05Percentage voucher just below the capAC2, BR4BoundaryP2as TC-02subtotal $79.90Apply SPRING10Discount −$7.99; total $71.91
    TC-06Percentage discount rounds half-upAC2, A2BoundaryP2as TC-02subtotal $33.35Apply SPRING10Discount −$3.34 (3.335 rounded half-up); total $30.01
    TC-07Reject one cent below the minimumAC3, BR3BoundaryP1WELCOME5 active, min $30subtotal $29.99Apply WELCOME5Not applied; message "Spend $0.01 more to use WELCOME5."; total $29.99
    TC-08Accept exactly at the minimumAC3, BR3BoundaryP1as TC-07subtotal $30.00Apply WELCOME5Line "WELCOME5 −$5.00"; total $25.00
    TC-09Reject one minute before startAC4, BR2BoundaryP1SPRING10 dates as AC4; clock 2027-02-28 23:59 UTC+7subtotal $50.00Apply SPRING10Not applied; "SPRING10 starts on 01/03/2027."
    TC-10Accept in the last minute of validityAC4, BR2BoundaryP1clock 2027-03-31 23:59 UTC+7subtotal $50.00Apply SPRING10Discount −$5.00
    TC-11Reject at the first minute after expiryAC4, BR2BoundaryP1clock 2027-04-01 00:00 UTC+7subtotal $50.00Apply SPRING10Not applied; "SPRING10 expired on 31/03/2027."
    TC-12Validity uses store time, not shopper timeAC4, BR2BoundaryP2clock 2027-03-31 17:30 UTC+0 (= 2027-04-01 00:30 store time); browser time zone UTC+0subtotal $50.00Apply SPRING10Not applied; expired message
    TC-13Unknown codeAC5NegativeP2no voucher SPRNG10code SPRNG10Apply SPRNG10No discount; "We couldn't find this code. Check it and try again."
    TC-14Reject when usage limit reachedAC6, BR6BoundaryP1SPRING10 limit 1000, 1000 orders placedsubtotal $50.00Apply SPRING10Not applied; "SPRING10 has been fully redeemed."
    TC-15Accept with one use remainingAC6, BR6BoundaryP1limit 1000, 999 orders placedsubtotal $50.00Apply SPRING10Discount −$5.00
    TC-16Applying does not consume a useBR6StateP2limit 1000, 999 orders placedsubtotal $50.001. Apply SPRING10 2. Leave checkout without placing the orderAdmin voucher report still shows 999 used
    TC-17Code is case-insensitive and trimmedAC7PositiveP2SPRING10 activeinput "␣spring10␣"ApplyDiscount applied as SPRING10
    TC-18Reject symbols in the codeAC7NegativeP2—input "SPRING-10"Apply"Codes use letters and numbers only."; no discount
    TC-19Code length boundariesAC7BoundaryP3no vouchers with these codes"AB1" (3), "AB12" (4), 20 chars, 21 charsApply each4 and 20 chars: unknown-code message. 3 and 21 chars: rejected, no discount, draft message "Codes are 4 to 20 characters." (wording per G2)
    TC-20Apply disabled for empty inputAC7NegativeP3—empty field; field with only spacesLook at ApplyDisabled for empty. Spaces only: disabled after trim (confirm with G2)
    TC-21Shipping is not discountedBR5PositiveP2WELCOME5 active; shipping $4.99subtotal $42.00Apply WELCOME5, view summarySubtotal $42.00, discount −$5.00, shipping $4.99, total $41.99
    TC-22Expired voucher on a cart below minimumDecision table, BR2+BR3NegativeP2clock 2027-04-01 00:00SPRING10, subtotal $20.00Apply SPRING10Not applied; which message — TBD, see G1

    Smoke set

    TC-01, TC-03, TC-07, TC-11, TC-14 (about 10 minutes).

    Automation candidates

    • TC-02 – TC-08: one data-driven API test with an examples table; stable and catches calculation regressions.
    • TC-09 – TC-12, TC-14 – TC-15: API level with a controllable clock and seeded usage counts.
    • TC-01 and TC-21: one UI end-to-end check of the order summary.
    • Not automated yet: TC-22 until G1 is answered; TC-19 asserts behavior now and message text once G2 is answered.

    Not covered

    Replacing or removing a voucher and re-checking on cart changes (US-2); concurrent use of the last redemption (order placement); voucher service failure (G3); performance during the campaign launch peak (no target stated).

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Fewer, sharper test cases that catch the bugs that matter. Test Case Generator designs tests the way a senior QA engineer does: model the inputs, find the boundaries, rate the risk, then write only the cases worth running.

    Real test design, not a list of happy paths

    • Equivalence partitioning and boundary values ($29.99 / $30.00 / $30.01, 23:59 / 00:00, 20 / 21 characters)
    • Decision tables for combined rules, state transitions for statuses, pairwise for configuration explosions
    • A cross-cutting checklist for forms, permissions, money, dates and time zones, tokens and one-time links, files, APIs, integrations, notifications, concurrency and accessibility

    Every run gives you

    • Requirement gaps first. Ambiguous or missing expected results are flagged as questions, never invented.
    • Coverage map from each requirement to its tests, with risk and technique.
    • Test cases with concrete data, numbered steps and exact expected results, all traceable to requirement IDs.
    • Smoke set of P1 cases, automation candidates with reasons, and what was deliberately not covered.

    Output your way

    Compact Markdown table, detailed manual or UAT scripts, Gherkin scenarios for BDD, or CSV with the right columns for Excel, TestRail, Xray or Zephyr Scale.

    Works from a bug fix (reproduce + same root cause + regression) or a code diff too. Works in any language and answers in yours.

    Pairs with

    User Story Writer (free): write the story first, then hand its acceptance criteria to this skill.

    Try it

    • Generate test cases for this story and its acceptance criteria: <paste story>
    • What should I test in this PR? <paste diff or link>
    • Write UAT scripts for the password reset flow and export CSV for TestRail.

    Designs and documents tests; it does not run them or connect to your environments. Expected results it cannot derive from the requirements are flagged as gaps, not invented. For suites above about 40 cases it shows the coverage map and P1 cases first, then the rest on request or in a file.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 6 days ago

    • Free with an Agensi account

    Requires

    Nothing to install.

    Permissions

    Write Files
    Read Files
    Listed6 days ago

    What's inside

    Frequently Asked Questions

    This skill accepts a wide range of inputs including business requirement documents, user stories, API specifications, and even Git pull request diffs to understand code changes.

    Yes, the skill is framework-agnostic and can export test cases in Gherkin (.feature), Markdown, or CSV formats compatible with tools like TestRail, Xray, and Zephyr.

    Unlike basic prompts, this skill applies specific QA methodologies like boundary value analysis and decision tables to ensure technical depth and identifies logic gaps in your requirements rather than guessing.

    The skill focuses on test design and documentation; it does not execute scripts or connect to your live application environments to run the tests.

    There is no hard cap. The number of cases follows risk, and duplicates are merged into examples tables. For more than about 40 cases you first get the coverage map and P1 cases, then the full list on request or written to a CSV or Markdown file.

    Yes, every generated suite includes a P1-P3 risk prioritization and a traceability map that links each test case back to its original requirement or code change.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Free