SpecFlow - 如何正确使用“背景:”功能文件中的命令?
我一直在阅读文章、观看一些截屏视频并尝试一些示例/演示教程。
我读过一篇文章,有人说“不要使用太多背景”。我很好奇,所以我在 SpecFlow 的功能文件中尝试了它,它突出显示为命令。
我一直在尝试为“Gherkin”找到一些语言指南,因为这就是它的编写目的,但还没有成功。
那么它是如何使用的呢?是否有任何文档可以告诉我还缺少哪些其他命令以及如何使用?
谢谢。
I've been reading articles, watching some screen-casts and playing around with a few sample/demo tutorials.
I read an article where someone said "don't use too many backgrounds". I was curious so I tried it in SpecFlow's feature file and it highlights as a command.
I've been trying to find some language guide for "Gherkin" since that's what it's written for, but no luck yet.
So how is it used? and is there any documentation that will show me what other commands I'm missing and how to use?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 SpecFlow 是根据 Cucumber(编程语言 Ruby 的 BDD 框架)设计的,因此如果您对 Gherkin 有疑问,最好查看 Cucumber wiki。
我找到了“背景”的描述
https://docs.cucumber.io/gherkin/reference/#background
Since SpecFlow is designed after cucumber (a BDD framework for programming language Ruby) it is a good idea to look into the Cucumber wiki if you have questions about Gherkin.
I found this description of "Background"
https://docs.cucumber.io/gherkin/reference/#background