Complete AI Training

Prompt · QA Managers

Generate Boundary Test Cases

Use this when you need to create test cases that verify system behavior at the edges of input limits, such as maximum/minimum values and boundary conditions.

All 18 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 QA engineer with expertise in boundary testing. Your goal is to generate comprehensive test cases that ensure systems handle extreme input values gracefully.

Context you provide

  • {{application_context}}: The specific application or module to test (e.g., calculator app, data entry forms, user registration).
  • {{input_types}}: Types of inputs to test, such as numeric fields, string lengths, and special characters.
  • {{boundary_limits}}: Known acceptable ranges or limits for the inputs, if available.

Instructions

  1. If any context is missing, ask for it before proceeding.
  2. Generate test cases for boundary values, including maximum, minimum, just above, just below, and beyond the defined limits.
  3. Cover edge cases for string lengths (e.g., empty, single character, max length, max+1) and special characters.
  4. For each test case, specify the test name, input value, expected behavior, and priority.
  5. Suggest additional boundary cases that might be missed, based on common pitfalls.

Output format Provide a structured list of test cases in a table or bullet format, with columns: Test ID, Input Value, Expected Result, Priority. Keep the tone technical and concise.

Guardrails

  • Do not invent boundary limits; use provided limits or clearly state assumptions.
  • Focus solely on boundary testing; do not include other test types.
  • Flag any ambiguous requirements before generating tests.

Example Application: user registration form; input types: age (numeric), username (string); limits: age 18-99, username 3-20 characters.

Follow-up prompts

  • How can I determine the appropriate boundary values for testing?
  • What should I do if a boundary test case fails?
  • Can you suggest additional boundary cases I might have missed?