Skip to content

Instantly share code, notes, and snippets.

@jxson
Created November 17, 2010 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jxson/702902 to your computer and use it in GitHub Desktop.
Save jxson/702902 to your computer and use it in GitHub Desktop.
$ cd ~/clients
$ DISPLAY=:1; bundle exec cucumber features/web-client/test.feature --format progress
Using the default profile...
F.F.F--
(::) failed steps (::)
unable to obtain stable firefox connection in 60 seconds (Selenium::WebDriver::Error::WebDriverError)
./features/web-client/step_definitions/elements.rb:4:in `evaluate_script'
./features/web-client/step_definitions/web.rb:53:in `__instance_exec_609716008'
features/web-client/test.feature:10:in `And I am logged in as "Santo"'
Failing Scenarios:
cucumber features/web-client/test.feature:17 # Scenario: view the feed
1 scenario (1 failed)
4 steps (1 failed, 2 skipped, 1 passed)
2m1.756s
@rodrigues
Copy link

hi, jxson!

do you remember what you did to solve this issue?

I'm having the same problem while running a cucumber suite in linux, in my hudson CI environment, and I've seen nothing about it on the net =/.

thanks!

@jxson
Copy link
Author

jxson commented Dec 31, 2010

Hey rodrigues,

yeah, getting this going was kinda silly.

I think the missing piece in this gist was making sure tightvnc was running and:

export DISPLAY=:1 &&

without the export your tests wont be able to run properly, this link might help you out too:
http://www.codigoergosum.com/2009/09/25/cucumber-meets-selenium-meets-integrity.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment