win
2011-02-08 05:56:06 UTC
I'm new in ruby/watir and I am trying to learn cucumber here.
Following the instructions from http://wiki.openqa.org/display/WTR/Install+Ruby,
I installed Ruby 1.9.1 p430 and watir 1.7.1. sucessfully. Then I
installed cucumber 0.9.0. Using this version, I am able to run the
command "cucumber --help".
The next thing I am trying to do is to run cucumber examples.
According to https://github.com/aslakhellesoy/cucumber/wiki/
I should be able to run cucumber command in each of the examples
directory. So I went to the examples directory and try to run the
command. However, I keep getting below error when running the
examples.
C:\ruby186\lib\ruby\gems\1.9.1\gems\cucumber-0.9.0\examples
\watir>cucumber ./features/search.feature
Using the default profile...
no such file to load -- spec/expectations (LoadError)
C:/ruby186/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:29:in
`require'
C:/ruby186/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:29:in
`require'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/examples/watir/
features/support/env.rb:1:in `rescue in <top (required)>'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/examples/watir/
features/support/env.rb:1:in `<top (required)>'
C:/ruby186/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:29:in
`require'
C:/ruby186/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:29:in
`require'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
rb_support/rb_language.rb:142:in `load_code_file'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime/support_code.rb:147:in `load_file'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime/support_code.rb:61:in `block in load_files!'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime/support_code.rb:60:in `each'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime/support_code.rb:60:in `load_files!'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime.rb:184:in `load_step_definitions'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime.rb:26:in `run!'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/cli/
main.rb:54:in `execute!'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/cli/
main.rb:29:in `execute'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/bin/cucumber:8:in
`<top (required)>'
C:/ruby186/bin/cucumber:19:in `load'
C:/ruby186/bin/cucumber:19:in `<main>'
Can someone shed me a light here?
Thanks,
Win
Following the instructions from http://wiki.openqa.org/display/WTR/Install+Ruby,
I installed Ruby 1.9.1 p430 and watir 1.7.1. sucessfully. Then I
installed cucumber 0.9.0. Using this version, I am able to run the
command "cucumber --help".
The next thing I am trying to do is to run cucumber examples.
According to https://github.com/aslakhellesoy/cucumber/wiki/
I should be able to run cucumber command in each of the examples
directory. So I went to the examples directory and try to run the
command. However, I keep getting below error when running the
examples.
C:\ruby186\lib\ruby\gems\1.9.1\gems\cucumber-0.9.0\examples
\watir>cucumber ./features/search.feature
Using the default profile...
no such file to load -- spec/expectations (LoadError)
C:/ruby186/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:29:in
`require'
C:/ruby186/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:29:in
`require'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/examples/watir/
features/support/env.rb:1:in `rescue in <top (required)>'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/examples/watir/
features/support/env.rb:1:in `<top (required)>'
C:/ruby186/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:29:in
`require'
C:/ruby186/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:29:in
`require'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
rb_support/rb_language.rb:142:in `load_code_file'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime/support_code.rb:147:in `load_file'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime/support_code.rb:61:in `block in load_files!'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime/support_code.rb:60:in `each'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime/support_code.rb:60:in `load_files!'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime.rb:184:in `load_step_definitions'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/
runtime.rb:26:in `run!'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/cli/
main.rb:54:in `execute!'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/lib/cucumber/cli/
main.rb:29:in `execute'
C:/ruby186/lib/ruby/gems/1.9.1/gems/cucumber-0.9.0/bin/cucumber:8:in
`<top (required)>'
C:/ruby186/bin/cucumber:19:in `load'
C:/ruby186/bin/cucumber:19:in `<main>'
Can someone shed me a light here?
Thanks,
Win
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.