黄瓜,poltergeist奇怪的错误,同时运行代码

时间:2019-04-15 13:31:23

标签: ruby cucumber capybara poltergeist

我在执行Cucumber测试用例时遇到错误

下面提到的错误详细信息,当我执行命令Cucumber

➜  cart git:(master) ✗ cucumber
Feature: To see cart options
  Everybody should see all cart menus

  Scenario: should see menu title                          # features/cart_homepage.feature:4
    Given I am on the home page                            # features/step_definitions/homepage.rb:1
      Request to '/' failed to reach server, check DNS and/or server status (Capybara::Poltergeist::StatusFailError)
      ./features/step_definitions/homepage.rb:2:in `"I am on the home page"'
      features/cart_homepage.feature:5:in `Given I am on the home page'
    When I visit homepage I should see title as Menu Items # features/step_definitions/homepage.rb:5

Failing Scenarios:
cucumber features/cart_homepage.feature:4 # Scenario: should see menu title

1 scenario (1 failed)
2 steps (1 failed, 1 skipped)

正在创建问题的Ruby代码。

Given("I am on the home page") do
  visit "/"
end

When("I visit homepage I should see title as Menu Items") do
  pending # Write code here that turns the phrase above into concrete actions
end

0 个答案:

没有答案