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.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- 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
- If any required context is missing, ask for it before proceeding.
- Break down the feature into key user actions and expected outcomes.
- Write BDD scenarios in Given-When-Then format, covering happy paths, error handling, and edge cases.
- Ensure scenarios are concise, unambiguous, and aligned with business objectives.
- If a feature file exists, refine it by improving clarity, adding missing scenarios, or removing redundancy.
- 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?