SpecFlow / BDD 示例

发布于 2024-09-13 22:30:37 字数 159 浏览 0 评论 0原文

只是寻找 BDD/SpecFlow 的一些示例 - 理想情况下是一个项目б,这样我就可以了解如何在大型项目中使用 SpecFlow,其中多个功能引用相同的步骤等。

我'在过去的几个月里,我读了一些博客,但还没有一个别人的好项目可供参考。

Just looking for some examples of BDD/SpecFlow - ideally a projectб so I can see how to use SpecFlow on big projects where multiple features my reference the same steps etc.

I've read a few blogs over the last few months, but haven't had a nice, juicy project of someone else's to mooch around through.

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

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

发布评论

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

评论(6

长伴 2024-09-20 22:30:37

SpecFlow 的官方示例集可以在 github 上找到:http://github.com/techtalk/SpecFlow-Examples

您可以查看 ASP.NET-MVC/BookShop 示例。但这不是一个很大的项目。 (如果需要VS2010示例,请切换到VS2010分支。)

The official example set of SpecFlow can be found on github: http://github.com/techtalk/SpecFlow-Examples

The ASP.NET-MVC/BookShop sample is the one that you can have a look. It is not a very big project though. (If you a need VS2010 sample, switch to the VS2010 branch.)

谈情不如逗狗 2024-09-20 22:30:37

另一个寻找示例的好地方是 SpecFlow 项目本身的测试。

特别是那些用于测试 Gherkin 解析的: https:/ /github.com/techtalk/SpecFlow/tree/master/Tests/TechTalk.SpecFlow.Specs/Features

这些测试展示了使用多行参数、表参数、模板等语法编写场景的多种方法。

Another great place to find examples are from the tests for the SpecFlow project itself.

In particular those used to test the Gherkin parsing: https://github.com/techtalk/SpecFlow/tree/master/Tests/TechTalk.SpecFlow.Specs/Features

Those tests show a lot of ways to write scenarios using syntax for mutliline parameters, table parameters, templates, and more.

怎言笑 2024-09-20 22:30:37

另请查看 Steve Sanderson 的 GuestbookDemo,其中展示了如何将 SpecFlow 与 WatiN

Also check out Steve Sanderson's GuestbookDemo, which shows off how to use SpecFlow with WatiN in ASP.NET MVC.

仄言 2024-09-20 22:30:37

另请参阅 Brandon Satrom 最近关于该主题的 MSDN 文章:http://msdn.microsoft .com/en-us/magazine/gg490346.aspx

Also, see Brandon Satrom's recent MSDN article on the topic: http://msdn.microsoft.com/en-us/magazine/gg490346.aspx

单挑你×的.吻 2024-09-20 22:30:37

我们使用 SpecFlow 制定了 CQRS Journey 项目的场景。查看概述我们是如何做到的,然后查看代码存储库中的验收测试本身。

We have used SpecFlow to formulate scenarios on the CQRS Journey project. Check out the overview of how we did it and then take a look at the acceptance tests themselves in the code repo.

赴月观长安 2024-09-20 22:30:37

我知道这是一个有答案的问题。以防万一有人需要一个快速简单的 Web 测试项目框架。我创建了一个 nuget 包 SeleniumNUnitSpecflow,用于使用 Nunit 和 Selenium 快速设置 Specflow。

下午>安装包 SeleniumNUnitSpecflow

详细信息: 网页 BDD 测试硒Specflow nunit

I know it is an answered question. Just in case some one needs a quick simple web test project skeleton. I have created a nuget package SeleniumNUnitSpecflow for quickly setting up Specflow with Nunit and Selenium.

PM> Install-Package SeleniumNUnitSpecflow

Details: Web page BDD test with selenium specflow nunit

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