0
是這樣的:是否可以使用黃瓜方案作爲函數?
Scenario: Create a Test Category
Given I am on the regression test test cases page
When I follow "New Category"
And I fill in "Name" with "Test Category"
And I press "Add Category"
Then I should see "Test Category" within ".test-categories-list"
Scenario: Add a Test Case
Given I "Create a Test Category"
我想創建測試類別然後創建測試用例的「一步一步」過程。這可能沒有做「給我創建一個測試類」,然後做一個工廠呢?
那麼在你的黃瓜TestCategory類中如何創建方法呢? – corroded 2011-04-11 10:47:41
更新了答案.. – 2011-04-11 10:58:39
我可以做一些類似於「給定場景:創建一個測試類別」的運行「? – corroded 2011-04-12 11:50:30