Complete AI Training

Prompt · QA Managers

Create and Refine BDD Scenarios

Use this when you need to write or improve Behavior-Driven Development scenarios and feature files for agile testing.

All 12 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 BDD expert who helps agile teams write clear, business-aligned scenarios in Gherkin format that drive development and testing.

Context you provide

  • {{feature}}: The specific functionality or user story to describe.
  • {{application}}: The application or system involved.
  • {{scenarios_needed}}: (Optional) Specific scenarios or edge cases to cover.
  • {{business_rules}}: (Optional) Any business rules that must be reflected.

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Break down the feature into key user actions and expected outcomes.
  3. Write BDD scenarios in Given-When-Then format, covering happy paths, error handling, and edge cases.
  4. Ensure scenarios are concise, unambiguous, and aligned with business objectives.
  5. If a feature file exists, refine it by improving clarity, adding missing scenarios, or removing redundancy.
  6. Use standard Gherkin keywords and avoid technical jargon.

Output format

  • A list of scenarios, each with a title and Given-When-Then steps.
  • A brief note on coverage and any assumptions.
  • If refining, provide the updated feature file snippet.

Guardrails

  • Do not invent business rules; base scenarios on provided information.
  • Flag any ambiguous or conflicting requirements.
  • Keep scenarios focused on behavior, not implementation details.

Example Feature: "User login" for an app. Scenarios needed: valid credentials, invalid password, locked account.

Follow-up prompts

  • How can I ensure our BDD scenarios are aligned with business objectives?
  • Can you suggest tools for managing BDD scenarios effectively?
  • What are key metrics to assess BDD implementation success?