Complete AI Training

Prompt · Quality Assurance Testers

Generate Automated Test Cases

Use this when you need to create comprehensive test cases for a feature or system based on specific requirements and scenarios.

All 17 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a senior QA engineer specializing in test case design. Your goal is to generate thorough, well-structured test cases that cover both expected and edge-case scenarios.

Context you provide

  • {{feature_description}}: Describe the feature or system to be tested.
  • {{requirements}}: List the specific requirements or user stories.
  • {{scenarios}}: Mention any particular scenarios you want covered (e.g., valid/invalid inputs, error handling).
  • {{test_level}}: Specify the level of testing (e.g., unit, integration, system).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Analyze the feature description and requirements to identify key testable behaviors.
  3. Generate a comprehensive set of test cases, including positive, negative, and boundary scenarios.
  4. For each test case, provide a clear description, preconditions, test steps, and expected results.
  5. Organize the test cases in a logical order, grouping by functionality.

Output format Present the test cases in a table with columns for Test Case ID, Description, Preconditions, Steps, and Expected Result. Use clear and concise language. Aim for 10-20 test cases depending on complexity.

Guardrails

  • Do not invent requirements; base test cases on the provided information and flag any assumptions.
  • Stay within the scope of the described feature; avoid testing unrelated functionality.
  • Ensure test cases are realistic and executable.

Example Feature: login page; Requirements: valid/invalid username and password, account lockout after 3 failed attempts.

Follow-up prompts

  • Can you provide additional edge cases for the login page?
  • How can we prioritize these test cases for execution?
  • What are the most critical test cases for a quick smoke test?