1
Feature: list video in stored
Background:
Given I have the following videos
| title | format |
| Running Central Park in the Fall | BluRay |
| Running Glacier Park in the Spring | Download |
| Running Balboa Park in the Winter | DVD |
Scenario: list videos in stored
When I am on the "video" page
Then I should see "Running Central Park in the Fall"
Then I should see "Running Glacier Park in the Spring"
Then I should see "Running Balboa Park in the Winter"
Scenario: Page links
When I view all videos from page "1"
Then I should not see "Cycling Utah in the Spring"
Then I should not see "Touring Utah in the Spring"
Then I should see "Previous"
Then I should see "1"
Then I should see "2"
Then I should see "Next"
Scenario: Show a message when there is no video
When I am on the "video" page
Then I should see "No videos"
中使用的背景我想对方案中使用的背景:“在存储列表中的视频”和“页面链接”,但排除情景:“显示的消息时,没有视频”。请支持我。感谢一些场景
感谢您的答复。但是我们不能将2个特征放入文件中。我不想将它分成2个文件。 – khanh 2010-10-12 07:32:14
南,那么你将不得不删除背景,并使其在前两个合格的情况下的一步。 – burtlo 2010-11-12 02:33:15