Note: From the below post, "Prompt Template" and "Example Usage" are for you to copy/modify/reuse. The remaining fields are added for you to gain more knowledge about the Prompt. Happy learning!
Purpose
Any Functionality | Generate initial test cases without examples | Test Case Generation | Zero-Shot Prompt
QE Category
Test Case Generation
Prompt Type
Zero-Shot
Typical SUTs and Quality Phases
Ideal for new or unexplored functionalities during requirement analysis or test planning.
Prompt Template
Role: A QA engineer creating test cases for [Feature Description] based on the user story below.
Context:
- **User Story**: [Insert User Story]
- **Acceptance Criteria**: [List Criteria]
- **Priority**: High/Medium/LowTask:
1. Generate at least 5 formal test cases adhering to industry standards.
2. Ensure test cases include:
- Preconditions
- Test Steps
- Expected Results
3. Include at least one edge case and one error-handling scenario.
Example Usage
Role: A QA engineer creating test cases for a batch data processing workflow based on the user story below.
Context:
- **User Story**: As a data manager, I want to upload CSV files for processing so that I can generate summary reports.
- **Acceptance Criteria**:
- Files should support up to 5MB.
- Invalid file formats must be rejected.
- Processing must complete within 10 seconds.
- **Priority**: HighTask:
1. Generate at least 5 formal test cases adhering to industry standards.
2. Ensure test cases include:
- Preconditions
- Test Steps
- Expected Results
3. Include at least one edge case and one error-handling scenario.
Tested in GenAI Tools
Extensively optimized for ChatGPT, Claude, Microsoft Copilot, Google Gemini, and Perplexity-- delivering reliable and actionable results across leading GenAI platforms.
Value of the Prompt
This prompt generates clear, actionable test cases without needing prior examples, ensuring immediate test coverage for new features.
Hands-On Exercise
Test a dynamic report generation feature. Replace placeholders with details like supported file formats, processing time limits, and error scenarios to generate relevant test cases.
Want More?
Refine acceptance criteria dynamically to explore additional scenarios and generate more comprehensive test cases. Challenge yourself to uncover edge cases or unexpected workflows.
Author
Ashwin Palaparthi
© 2023 Ai4Testers.com™ All rights reserved | Made with ❤️ by ContentShastra.com™
Check your inbox to confirm your subscription to Ai4Testers™. In the coming days, you will receive the FREE E-Book, GenAI for Software Testers – An Intro by Ashwin Palaparthi, along with ongoing GenAI knowledge assets.