【发布时间】:2011-06-24 06:18:57
【问题描述】:
让我问你一些事情,如果有这样的场景:
Scenario: Listing the questions for a user that has answered questions
Given I am a logged user called "vintem"
And I have the following projects
| Project |
| Project 1 |
| Project 2 |
When I visit the projects page
Then I should see
| Project |
| Project 1 |
| Project 2 |
在这种情况下,您通常会做什么来创建项目 必须在项目页面中看到?假设我正在使用存储库 模式会调用存储库本身来创建项目吗? 或者使用 Watin 模拟项目的创建? 在直接调用存储库的情况下,我的连接到 数据库必须与 Web 项目中的数据库相同,对吗?一世 在这种情况下,不能有一个测试数据库和一个开发数据库。 谢谢
【问题讨论】:
-
这是为了单元测试的目的吗?
-
我正在尝试将其用作 BDD 样式。因此,我希望这是一个验收测试
标签: asp.net-mvc specflow