49 / 56 · 18 Test Management Tools · AI in Test Management← prev⊞ allnext →☰ Read as one page
7.2Auto-Generating Test Cases from User Stories
AI tools can read a Jira user story and generate draft test cases, including edge cases that humans commonly miss under time pressure. The QA engineer reviews, refines, and approves rather than writing from scratch.
Example
Input (Jira user story):
"As a user, I want to reset my password via email so that I can regain access to my account."
AI-generated test cases:
| # | Test Case | Type |
|---|---|---|
| 1 | Request reset, receive email, click link, set new password, log in | Happy path |
| 2 | Expired reset link (clicked after 24 hours) | Time boundary |
| 3 | Invalid email address (not registered) | Invalid input |
| 4 | Multiple reset requests (only latest link should work) | State management |
| 5 | Password complexity requirements not met | Validation |
| 6 | Reset link used twice (should be single-use) | Security |
| 7 | SQL injection in email field | Security |
| 8 | Rate limiting: too many reset requests in a short period | Abuse prevention |
| 9 | Reset password while logged in on another device | Multi-session |
| 10 | Email contains correct branding and valid links | Content verification |
A human QA engineer would likely write the first four or five. The AI catches the security and edge cases (items 6-10) that are easy to miss in time-pressured sprints.
How to Use AI Test Generation Effectively
- Do not accept output blindly: AI generates plausible but sometimes incorrect test cases. Review every one.
- Add domain-specific knowledge: AI does not know your product's specific business rules, data constraints, or historical problem areas. Add these manually.
- Use AI for breadth, humans for depth: AI excels at generating a wide range of scenarios. Humans excel at understanding which scenarios are most important and how to test them deeply.
- Iterate the prompt: If the first generation is too generic, add context: "This is a financial application with PCI compliance requirements. The password reset flow must handle concurrent sessions."
Tools for AI Test Generation
- GitHub Copilot: Generates test code suggestions in your IDE
- TestRail AI: Generates test cases from linked Jira stories
- Commercial "agentic" platforms: As of July 2026, KaneAI (LambdaTest), mabl, testRigor, Applitools, Testim (Tricentis), Functionize, Virtuoso, and Katalon all offer AI test generation and position themselves around agentic execution -- agents that plan, run, and self-heal tests, not just draft them
- QA Wolf: A managed service where a human+AI team builds and maintains your automated test suite for you
- Custom GPT/Claude prompts: Feed your user stories to an LLM with a structured prompt