fidothe / cucumber_selenium_example

A trivial example Rails app showing a mixed Selenium / non-Selenium Cucumber setup

This URL has Read+Write access

name age message
file README.markdown Fri Nov 06 09:57:55 -0800 2009 Tweaked README and added the database_cleaner g... [fidothe]
file Rakefile Fri Nov 06 09:14:24 -0800 2009 Initial bare Rails 2.3.4 app [fidothe]
directory app/ Fri Nov 06 09:14:24 -0800 2009 Initial bare Rails 2.3.4 app [fidothe]
directory config/ Fri Nov 06 09:57:55 -0800 2009 Tweaked README and added the database_cleaner g... [fidothe]
file cucumber.yml Fri Nov 06 09:40:26 -0800 2009 Fixed cucumber.yml typo; added selenium-client ... [fidothe]
directory db/ Fri Nov 06 09:14:24 -0800 2009 Initial bare Rails 2.3.4 app [fidothe]
directory doc/ Fri Nov 06 09:14:24 -0800 2009 Initial bare Rails 2.3.4 app [fidothe]
directory features/ Fri Nov 06 09:18:55 -0800 2009 The basic Cucumber + Selenium setup [fidothe]
directory lib/ Fri Nov 06 09:18:55 -0800 2009 The basic Cucumber + Selenium setup [fidothe]
directory log/ Fri Nov 06 09:14:24 -0800 2009 Initial bare Rails 2.3.4 app [fidothe]
directory public/ Fri Nov 06 09:14:24 -0800 2009 Initial bare Rails 2.3.4 app [fidothe]
directory script/ Fri Nov 06 09:17:01 -0800 2009 The app after running the RSpec and Cucumber ge... [fidothe]
directory spec/ Fri Nov 06 09:17:01 -0800 2009 The app after running the RSpec and Cucumber ge... [fidothe]
README.markdown

Mixed Selenium / non-Selenium Cucumber testing

A trivial example Rails app with Cucumber + Selenium testing set up and ready to go for Selenium and non-Selenium Scenarios within the same Feature file, using tags to separate them.

It was generated by created a blank Rails 2.3.4 app (The first commit, at http://github.com/fidothe/cucumber_selenium_example/commit/6a8693efe5767436a951fa7f27ac5e826e96cccc), running ruby script/generate rspec and ruby script/generate cucumber --rspec (the second commit, at http://github.com/fidothe/cucumber_selenium_example/commit/ad4deeb59595d7a15863ff8fea4d3b6801d5a383).

After that, the modifications needed to make Selenium run were made, in the rest of the commits (http://github.com/fidothe/cucumber_selenium_example/).

The snow_leopard branch contains the tweaks needed to run Selenium with Firefox on Snow Leopard,.

Look out for:

  • The addition of cucumber.yml
  • The rewritten lib/tasks/cucumber.rake
  • The rewritten features/support/env.rb
  • The trivial Feature in features/support/env.rb
  • The inclusion of the selenium-client gem in config/environments/cucumber.rb