某些场景使用的背景

发布于 2024-09-27 05:17:41 字数 1096 浏览 1 评论 0原文

    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"

我想要场景使用的背景:“列出存储中的视频”和“页面链接”,但排除场景:“没有视频时显示消息”。请支持我。谢谢

    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"

I want used background for Scenario: "list videos in stored" and "Page links" but exclusion Scenario: "Show a message when there is no video". Please support me. thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

二智少女 2024-10-04 05:17:41

创建 2 个特征,一个有背景和场景,另一个没有背景

    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"

Feature: list video in stored without video
   Scenario: Show a message when there is no video
     When I am on the "video" page
     Then I should see "No videos"

create 2 features one with background and scenario, the other without background

    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"

Feature: list video in stored without video
   Scenario: Show a message when there is no video
     When I am on the "video" page
     Then I should see "No videos"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文