【发布时间】:2011-11-15 00:40:26
【问题描述】:
specflow 看起来像是我希望我的团队考虑使用的解决方案。然而,我的经理并不真正喜欢 BDD 风格的测试。由于 specflow 与 Visual Studio 的完美集成,我想知道是否可以利用 specflow 框架,同时允许较少 bdd 样式的测试形式。
例如,不要编写如下测试:
Scenario: Help->About
Given a user is logged in to "http://..." as "user/password"
And they are on the page titled "Home"
When I click on "about"
Then I should see a window titled "about"
...我想写成:
Scenario: Help->About
log in to "http://..." as "user/password"
click on the "About" link
assert "About" window should be visible
换句话说,必须我使用 Given、Then 等关键字,还是 specflow 能够处理不以这些词开头的步骤?
【问题讨论】:
标签: specflow