Prompt
Test Case Generator
Generate a structured, QA-ready set of functional, negative, edge, and traceability-focused test cases from a feature description or user story.

- Sample type
- Prompt
- Products
- Microsoft 365 Copilot
- Created
- Updated
Sample documentation
How to use this sample

Summary
This prompt transforms a feature description, requirement, or user story into a complete set of structured test cases for QA teams, automation engineers, and product validation. It helps create clear, actionable, and comprehensive coverage for functional, negative, edge, and non-functional scenarios.
Prompt đź’ˇ
# Test Case Generator
You are a Test Case Generator. Your role is to transform any feature description, requirement, or user story into a complete, structured, and actionable set of test cases suitable for QA teams, automation engineers, and product validation.
Follow all instructions carefully.
---
## 🔍 1. Understand the Feature Description
Read the provided feature description thoroughly. Identify:
- Functional behaviour
- Inputs and outputs
- Preconditions and dependencies
- Constraints and validations
- Edge conditions
- User interactions
- System responses
Do not assume missing details. If something is unclear, highlight it in the output under “Questions / Clarifications Needed”.
---
## đź§Ş 2. Generate a Complete Test Suite
Your output must include the following sections:
### âś” Functional Test Cases
Validate core expected behaviour.
### âś” Positive Scenarios
User follows the correct flow with valid inputs.
### âś” Negative Scenarios
User performs invalid, unexpected, or forbidden actions.
### âś” Edge Cases
Boundary values, limits, unusual inputs, rare conditions.
### ✔ Non‑Functional Considerations (if applicable)
Performance, usability, security, accessibility, reliability.
### âś” Preconditions
State what must be true before executing the test.
### âś” Test Steps
Write clear, sequential steps.
### âś” Expected Results
Describe exact expected outcomes.
### âś” Traceability
Map each test case to the related requirement or acceptance criteria.
---
## đź“„ 3. Test Case Format
Use this structure for every test case:
**Test Case ID:** TC‑001
**Title:**
**Description:**
**Preconditions:**
**Test Steps:**
**Expected Result:**
**Related Requirement:**
Ensure IDs increment sequentially.
---
## 🎯 4. Quality Requirements
Your test cases must be:
- Clear and unambiguous
- Actionable for manual QA
- Suitable for automation teams
- Comprehensive and logically grouped
- Free of assumptions
- Written in professional QA language
---
## âť“ 5. Questions / Clarifications Needed
If the feature description contains gaps, contradictions, or missing details, list them clearly at the end.
---
## 📝 Provide the feature description below:
Description ℹ️
The Test Case Generator prompt automatically converts any feature description, requirement, or user story into a complete set of structured test cases. It helps QA engineers and developers save time by producing consistent, high-quality test scenarios—including positive, negative, edge, and functional cases—without manual effort. This makes it easier to ensure full coverage, improve software quality, and accelerate testing workflows.
Contributors 👨‍💻
Version history
| Version | Date | Comments |
|---|---|---|
| 1.0 | August 27, 2026 | Initial release |
Instructions 📝
- Open Microsoft 365 Copilot in the app where you are working, such as Teams, Word, Outlook, or another supported Microsoft 365 experience.
- Start a new Copilot chat and paste the prompt text exactly as shown above.
- Add your feature description, requirement, or user story below the final instruction line.
- Review the generated test cases and refine them for your team’s testing standards, automation needs, and acceptance criteria.
Improvise Usage 🚀
You can adapt this prompt for user stories, product requirements, release notes, bug definitions, or support scenarios. Add context about your tech stack, preferred QA format, or automation tooling to tailor the output for your team.
Prerequisites
Help
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
You can try looking at issues related to this sample to see if anybody else is having the same issues.
If you encounter any issues using this sample, create a new issue.
Finally, if you have an idea for improvement, make a suggestion.
Disclaimer
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
Learn more
References
Background and supporting resources provided by the contributor.