Note that there are some explanatory texts on larger screens.

plurals
  1. POCucumber doesn't test any defined step
    primarykey
    data
    text
    <p>I created just a feature file (AddMovie.feature) that contains:</p> <pre><code>Feature: User can manually add movie Scenario: Add a movie Given I am on the RottenPotatoes home page When I follow "Add new movie" Then I should be on the Create New Movie page When I fill in "Title" with "Men In Black" And I select "PG-13" from "Rating" And I press "Save Changes" Then I should be on the RottenPotatoes home page  And I should see "Men In Black" </code></pre> <p>When I execute cucumber to test it with the command:</p> <pre><code>bundle exec cucumber features/AddMovie.feature </code></pre> <p>I get this as a result:</p> <pre><code>Using the default profile... Feature:  User can manually add movie Scenario:  Add a movie # features/AddMovie.feature:3 Given I am on the RottenPotatoes home page When I follow "Add new movie" Then I should be on the Create New Movie page When I fill in "Title" with "Men In Black" And I select "PG-13" from "Rating" And I press "Save Changes" Then I should be on the RottenPotatoes home page  And I should see "Men In Black" 1 scenario (1 passed) 0 steps </code></pre> <p>Normally this scenario will fail since i didn't add the path of "the RottenPotatoes home page". If you read the last line "0 steps" so cucumber is not running any step.</p> <p>How can I fix this ? and make cucumber testing the steps defined in AddMovie.feature ?</p> <p>PS: when I used the command cucumber features/Addmovies.feature I got this error</p> <pre><code>Using the default profile... You have already activated activesupport 3.2.8, but your Gemfile requires activesupport 3.1.0. Using bundle exec may solve this. (Gem::LoadError) /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/runtime.rb:31:in `block in setup' /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/runtime.rb:17:in `setup' /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler.rb:107:in `setup' /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/setup.rb:7:in `&lt;top (required)&gt;' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require' /home/ubuntu/Desktop/hw2_rottenpotatoes/config/boot.rb:6:in `&lt;top (required)&gt;' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' /home/ubuntu/Desktop/hw2_rottenpotatoes/config/application.rb:1:in `&lt;top (required)&gt;' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' /home/ubuntu/Desktop/hw2_rottenpotatoes/config/environment.rb:2:in `&lt;top (required)&gt;' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-rails-1.3.0/lib/cucumber/rails.rb:7:in `&lt;top (required)&gt;' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require' /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require' /home/ubuntu/Desktop/hw2_rottenpotatoes/features/support/env.rb:7:in `&lt;top (required)&gt;' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/rb_support/rb_language.rb:129:in `load' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/rb_support/rb_language.rb:129:in `load_code_file' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:171:in `load_file' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:82:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:82:in `load_files!' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:175:in `load_step_definitions' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:40:in `run!' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:43:in `execute!' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:20:in `execute' /usr/local/lib/ruby/gems/1.9.1/gems/cucumber-1.2.1/bin/cucumber:14:in `&lt;top (required)&gt;' /usr/local/bin/cucumber:19:in `load' /usr/local/bin/cucumber:19:in `&lt;main&gt;' </code></pre> <p>And It disappeared when I have added Bundle exec</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload