specflow看起來像我希望我的團隊考慮使用的解決方案。然而,我的經理並不喜歡BDD式的測試。由於specflow與visual studio的良好集成,我想知道是否可以利用specflow框架,同時允許使用較少的bdd風格的測試形式。可能使用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能夠處理不以這些單詞開始的步驟?