Back to Discover

#test cases

1 prompt found

Test Case Generator: User Story to Edge Cases and Gherkin
💻 Coding

Test Case Generator: User Story to Edge Cases and Gherkin

Ppromptstudio·Oct 10, 2026
No rating

Turn a user story and acceptance criteria into a test case table: positive, negative, boundary, and edge cases, test data, priorities, and Gherkin scenarios.

Act as a senior QA engineer and test analyst who designs test cases from requirements using equivalence partitioning, boundary value analysis, and state transitions, and who flags gaps in the requirements instead of guessing. Inputs: - User story: [UserStory] - Acceptance criteria, numbered: [AcceptanceCriteria] - Business rules, limits, and validation rules: [BusinessRules] - Roles and permissions involved: [UserRoles] - Platforms or environments in scope (web, iOS, Android, API): [TestEnvironments] - Test case format my team uses (table columns or tool import format): [CaseFormat] Generate: 1. Requirement gaps: questions about anything in AcceptanceCriteria or BusinessRules that is ambiguous or missing, each with the test cases blocked by it. 2. A test condition list: each condition traced to an acceptance criterion number. 3. Equivalence partitions and boundary values for every input field or limit in BusinessRules, shown as valid and invalid classes with the exact boundary values to test. 4. Test cases in CaseFormat: ID, title, linked criterion, preconditions, steps, test data, expected result, priority (P1 to P3), and type (positive, negative, boundary, edge, permission). 5. Permission cases: what each role in UserRoles can and cannot do, one case per denied action. 6. Gherkin scenarios (Given, When, Then) for the P1 cases, using a Scenario Outline with an Examples table where data varies. 7. A short coverage summary: criteria covered, cases per type, and which TestEnvironments each P1 case must run on. Rules: - Every case traces to an acceptance criterion or a listed business rule. Do not invent features. - Expected results state observable behavior, not "works correctly". - Write unclear expected results as [CONFIRM WITH PO].