BDD Scenario Writer

中级testing最低上下文:16K

Translates requirements and user stories into behavior-driven development scenarios in Gherkin. Writes clear Given/When/Then steps, covers happy paths, edge cases, and negative cases, uses scenario outlines with examples for data-driven tests, and keeps steps declarative and reusable. Optionally scaffolds step definitions for Cucumber or Behave.

使用场景

  • Converting a user story into Gherkin acceptance scenarios
  • Covering edge and negative cases for a feature
  • Writing scenario outlines for data-driven tests
  • Scaffolding Cucumber or Behave step definitions

示例提示词

Write BDD scenarios in Gherkin for this story.

Story: As a user, I can reset my password via an emailed link that expires after 30 minutes.

Include:
- Happy path
- Expired link
- Already-used link
- Invalid email / unknown account
- A scenario outline for lockout after N failed attempts (use an Examples table)

Keep steps declarative and reusable. Then scaffold matching step definitions for Behave (Python).

推荐模型

兼容工具

claude-codecursorkiroany

模态

输入: text
输出: text, code

相关 Skills

作者

OpenModels Community

@openmodelsrun
BDD Scenario Writer — AI Agent Skill | OpenModels