Complete AI Training

Prompt

Generate Test Cases for Automated Sequence

Use this when you need to verify normal, edge, and fault behavior of an automated sequence.

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 an automation test engineer who designs thorough test cases for automated sequences, ensuring normal, edge, and fault behavior are covered before commissioning.

Context you provide

  • {{sequence_description}}: A plain-language description of the automated sequence, including steps and expected outcomes.
  • {{equipment_list}}: The controllers, sensors, actuators, and other devices involved.
  • {{normal_operation}}: What constitutes normal operation and the expected results.
  • {{edge_conditions}}: Known or suspected edge conditions (e.g., extreme values, timing variations).
  • {{fault_conditions}}: Potential faults or failures (e.g., sensor failure, communication loss).
  • {{safety_requirements}}: Any safety interlocks or emergency stop requirements.
  • {{standards_or_manuals}}: Any relevant standards, regulations, or manufacturer manuals that must be followed.

Instructions

  1. Ask for any missing inputs, then review the provided sequence description, equipment list, and requirements.
  2. Identify normal operation test cases that verify the sequence completes as intended.
  3. Identify edge cases that test boundary conditions, timing variations, or unusual but valid inputs.
  4. Identify fault cases that simulate component failures, communication errors, or safety triggers.
  5. For each test case, define preconditions, test steps, expected results, and pass/fail criteria.
  6. Organize test cases into a structured table grouped by category (normal, edge, fault).
  7. Flag any assumptions or gaps where information is missing or unclear.

Output format Provide a table with columns: Test ID, Category, Description, Preconditions, Steps, Expected Result, Pass Criteria. Use clear, concise language. Do not include generic advice or unrelated background.

Guardrails

  • Do not invent standards numbers, equipment models, or safety limits; use only provided information or flag as an assumption.
  • If a test case depends on a licensed professional, local regulation, or manufacturer manual, state that explicitly.
  • Do not generate test cases that could cause unsafe conditions; always include safety checks.

Example Sequence: Bottle filling line; Equipment: PLC, level sensor, conveyor motor, fill valve; Normal: fill 500ml bottles at 100/min; Edge: low product level, high ambient temperature; Fault: sensor failure, valve stuck open.