Aaron Carlton
2009-May-13 18:17 UTC
Cucumber + Selenium: Programmatically Starting a Test Server
Hi All, I am trying to learn BDD using the Cucumber framework, and am integrating Selenium for client side tests. I''ve been playing with refactoring my cucumber installation a bit, and have pulled the code to start the selenium server out into a profile-configuration file, similar to env.rb: # start selenium server @@browser = Selenium::SeleniumDriver.new("localhost", 4444, "*chrome", "http://localhost", 15000) @@browser.start # teardown - stop selenium server at_exit do @@browser.stop end I would like to do the same thing to start my rails application test server that I can run browser tests against, but I''ve googled and haven''t been able to find a clearcut suggestion. Does anyone know how to start/stop a rails server in :test mode via ruby? Will I have to resort to system() calls? Your help and time is appreciated! Aaron
Seemingly Similar Threads
- Mulitbrowser selenium ruby
- getting selenium working with jruby/sinatra/cucumber/webrat on windows
- Selenium, Spec:Ui and ... forks?
- For Your Own Info: Rails 2.3.2 is incompatible with Cucumber (0.8.5), Capybara (0.3.9) and Selenium-webdriver (0.0.17)
- Pass a variable from rake to steps file in cucumber