您如何管理 bdd 功能和场景?

发布于 2024-12-05 22:50:22 字数 174 浏览 1 评论 0原文

我们正在使用 Specflow 采用 BDD。我们面临的问题是,不能指望产品所有者和经理进入 Visual studio / svn 并编辑功能或场景。

我们可以让下午在谷歌文档中完成这一切,然后我们可以将它们复制并粘贴到功能文件中,但这很容易出错,并且很快就会失去同步。

管理此问题的最佳实践是什么?

We are adopting BDD using specflow. The issue we have is that product owners and managers can not be expected to go into Visual studio / svn and edit features or scenarios.

We can get the pm's to do it all in google docs, and then we can copy and paste them into feature files, but this will be error prone and will get out of sync very quickly.

What is the best practice for managing this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

时光是把杀猪刀 2024-12-12 22:50:22

一般来说,产品所有者或业务分析师不应该自己编写功能,因为这可能会导致结构不良、无法测试的场景。

一种常见的方法被称为“三个朋友”——业务利益相关者、开发人员和测试人员一起工作来编写场景。

可以使用 Google Docs 进行初始草稿,但之后功能应存储在版本控制中,并且 PO/BA 应与具有源代码控制访问权限的开发人员合作进行更改。

您应该通过从 Intranet 或 wiki 链接到版本控制的功能文件,或者使用 津津有味

Product owners or business analysts should, in general, not be writing features on their own, as this can lead to poorly structured, untestable scenarios.

A common approach is known as 'the three amigos' - a business stakeholder, developer and tester working together to write scenarios.

It's fine to use Google Docs for the initial draft, but after that the features should be stored in version control, and the PO/BA should collaborate with a developer who has source control access on making changes.

You should make the version-controlled feature files easily accessible for review and reference to business stakeholders by linking to them from your intranet or wiki, or using a tool such as Relish.

家住魔仙堡 2024-12-12 22:50:22

我们在我工作的公司所做的是,大多数业务分析师(也就是编写故事的人)知道如何使用 SVN,编写故事,甚至运行测试(在我们的例子中,它不是 Specflow,而是 Cucumber) )。他是那个与产品所有者/经理交谈并将新功能/需求写成故事的人。换句话说,将任务委托给具有一定编写故事或场景经验的人员(BA 或 QA),并且能够运行它们并在发生问题时进行故障排除。沟通是这一切的基础。如果你没有这个人,那么...尝试得到他:)

What we have done in the company I work for is, most of the Business Analysts (which are the ones that write the stories) know how to use SVN, write the stories and even run the tests (in our case it's not Specflow but Cucumber). He is the one that talks with product owners/managers to write the new features/requirements as stories. In other words, delegate the task to someone (either a BA or a QA) who has some experience writing stories or scenarios and be able to run them and troubleshoot if something bad happens. Communication is the base of this. If you don't have this person, well... try to get it :)

此岸叶落 2024-12-12 22:50:22

Matt Wynne 关于使用 Cucumber 是一本很好的读物。让每个人都使用通用语言,并为整个团队提供单一的事实真相。

查看 Pickles 来很好地输出您的功能 https://github.com/x97mdr/pickles/wiki

Matt Wynne on Using Cucumber is a good read. Getting everyone talking ubiquitous language and having a single point of truth for the whole team.

Check out Pickles for outputting your features nicely https://github.com/x97mdr/pickles/wiki

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文