Here is my config
Webrat.configure do |config|
if ENV['INTEGRATION_MODE']
config.mode = :selenium
config.application_framework = :rails
config.application_port = 3001
config.selenium_server_port = 4444
Mainline.enable do |mainline_config|
mainline_config.port = 3001
end
else
config.mode = :rails
config.open_error_files = true
Mainline.enable
end
end
It runs great without selenium. When I try to run it with selenium the server never appears to start. I get:
Given I am a logged in "Company" user # features/step_definitions/user_steps.rb:1
XHR ERROR: URL = http://localhost:3001/login Response_Code = 500 Error_Message = Internal Server Error (Selenium::CommandError)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:62:in `timeout'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:93:in `timeout'
./features/step_definitions/web_steps.rb:16:in `/^(?:|I )am on (.+)$/'
features/company_clients.feature:7:in `Given I am a logged in "Company" user'
I'm using sqlite3 for my tests. That could be the issue. I get this later on:
Given I am a logged in "Company" user # features/step_definitions/user_steps.rb:1
SQLite3::BusyException: database is locked: INSERT INTO "base_users" ("created_at", "rights", "updated_at", "username", "type", "last_name", "password", "first_name", "email") VALUES('2010-05-27 02:53:00', '--- []
', '2010-05-27 02:53:00', 'Joe.User2', 'CompanyUser', 'User2', 'password', 'Joe', 'joe.user2@usicoa.com') (ActiveRecord::StatementInvalid)
./features/step_definitions/user_steps.rb:2:in `/^I am a logged in "([^\"]*)" user$/'
features/company_clients.feature:15:in `Given I am a logged in "Company" user'
Here is my config Webrat.configure do |config| if ENV['INTEGRATION_MODE'] config.mode = :selenium config.application_framework = :rails config.application_port = 3001 config.selenium_server_port = 4444 Mainline.enable do |mainline_config| mainline_config.port = 3001 end else config.mode = :rails config.open_error_files = true Mainline.enable end end
It runs great without selenium. When I try to run it with selenium the server never appears to start. I get:
I'm using sqlite3 for my tests. That could be the issue. I get this later on: