Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not starting the application #2

Open
adkron opened this issue May 27, 2010 · 0 comments
Open

Not starting the application #2

adkron opened this issue May 27, 2010 · 0 comments

Comments

@adkron
Copy link

adkron commented May 27, 2010

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', '[email protected]') (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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant