Skip to content

Instantly share code, notes, and snippets.

@c4milo
Created May 11, 2009 02:41
Show Gist options
  • Save c4milo/109842 to your computer and use it in GitHub Desktop.
Save c4milo/109842 to your computer and use it in GitHub Desktop.
camilo@levitas:~/Development/ruby/cucumber/examples/selenium_webrat$ rake features
(in /home/camilo/Development/ruby/cucumber/examples/selenium_webrat)
/usr/bin/ruby1.8 -I "/home/camilo/Development/ruby/cucumber/lib:lib" "/home/camilo/Development/ruby/cucumber/bin/cucumber" --format pretty --require features/step_definitons/search_steps.rb --require features/support/env.rb features/search.feature
Feature: Search
In order to learn more
As an information seeker
I want to find more information
Scenario: Find what I'm looking for # features/search.feature:6
==> Waiting for Selenium RC server on port 4444... .
21:38:02.773 INFO - Java: IBM Corporation 2.3
21:38:02.776 INFO - OS: Linux 2.6.28-11-generic amd64
21:38:02.780 INFO - v1.0-SNAPSHOT [1123], with Core v@VERSION@ [@REVISION@]
21:38:02.944 INFO - Version Jetty/5.1.x
21:38:02.946 INFO - Started HttpContext[/,/]
21:38:02.948 INFO - Started HttpContext[/selenium-server,/selenium-server]
21:38:02.949 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
21:38:02.985 INFO - Started SocketListener on 0.0.0.0:4444
21:38:02.985 INFO - Started org.mortbay.jetty.Server@132a132a
Ready!
Starting app server
21:38:04.404 INFO - Checking Resource aliases
21:38:04.418 INFO - Command request: setSpeed[0, ] on session null
21:38:04.426 INFO - Got result: OK on session null
21:38:04.461 INFO - Command request: getNewBrowserSession[*firefox, http://localhost:3001, ] on session null
21:38:04.464 INFO - creating new remote session
21:38:05.629 INFO - Allocated session 09972bebce7a49f5afd93d3d62257ca7 for http://localhost:3001, launching...
21:38:05.716 INFO - Preparing Firefox profile...
21:38:09.298 INFO - Launching Firefox...
21:38:14.531 ERROR - Failed to start new browser session, shutdown browser an clear all session data
org.openqa.selenium.server.RemoteCommandException: timed out waiting for window 'null' to appear
at org.openqa.selenium.server.FrameGroupCommandQueueSet.waitForLoad(FrameGroupCommandQueueSet.java:565)
at org.openqa.selenium.server.FrameGroupCommandQueueSet.waitForLoad(FrameGroupCommandQueueSet.java:522)
at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:324)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:118)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:81)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:658)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:392)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:368)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:129)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
21:38:14.536 INFO - Killing Firefox...
21:38:14.689 INFO - Got result: Failed to start new browser session: Error while launching browser on session null
Given I am on the Google search page # features/step_definitons/search_steps.rb:1
led to start new browser session: Error while launching browser (Selenium::CommandError)
/usr/lib/ruby/1.8/timeout.rb:62:in `timeout'
/usr/lib/ruby/1.8/timeout.rb:93:in `timeout'
(eval):2:in `/^I am on the Google search page$/'
features/search.feature:7:in `Given I am on the Google search page'
When I search for "rspec" # features/step_definitons/search_steps.rb:5
Then I should see a link to RSpec-1.2.4: Home # features/step_definitons/search_steps.rb:11
1 scenario (1 failed)
3 steps (1 failed, 2 skipped)
21:38:14.706 INFO - Command request: shutDown[, ] on session null
21:38:14.707 INFO - Shutdown command received
21:38:14.737 INFO - initiating shutdown
21:38:14.739 INFO - Got result: null on session null
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 -I "/home/camilo/Developm...]
(See full trace by running task with --trace)
camilo@levitas:~/Development/ruby/cucumber/examples/selenium_webrat$ 21:38:15.248 INFO - Shutting down...
21:38:15.305 INFO - Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment