ok,

I made some progess debugging this.

I downloaded software from here:
  - 
http://release.seleniumhq.org/selenium-remote-control/1.0.1/selenium-remote-control-1.0.1-dist.zip

I verified that Selenium Remote Control works on my Mac using this
tutorial:
  - http://www.jroller.com/selenium/#steps

Above tutorial tells me I can start selenium-remote-control with a
simple shell command:
  - /usr/bin/java -jar selenium-server-1.0.1/selenium-server.jar -
multiwindow

Then I exported a test-case (in ruby format) using Selenium IDE:

require "rubygems"
require "selenium"
require "test/unit"

class SelTestCase20091108 < Test::Unit::TestCase
  def setup
    @verification_errors = []
    if $selenium
      @selenium = $selenium
    else
      @selenium = Selenium::SeleniumDriver.new("localhost", 4444,
"*chrome", "http://www.google.com/";, 10000);
      @selenium.start
    end
    @selenium.set_context("SelTestCase20091108")
  end

  def teardown
    @selenium.stop unless $selenium
    assert_equal [], @verification_errors
  end

  def test_sel_test_case2009_1108
    @selenium.open "/"
    @selenium.type "q", "selenium remote control"
    @selenium.click "btnG"
    sleep 66
  end
end


I was able to run above test-case with no problem:
  - ruby sel_test_case2009_1108.rb

At that point it dawned on me that the Selenium-server started by my
Cucumber was broken.

And I recognized that the Selenium-server I had started by hand was
ok.

So, I started the Selenium-server by hand using this shell command:
  - /usr/bin/java -jar selenium-server-1.0.1/selenium-server.jar -
multiwindow

Then, in another terminal I ran this:

script/cucumber features/welcome_page.feature

Cucumber complained that port 4444 was taken but that is a good thing
because broken-Selenium-server could not start.

After 7 seconds, 2 firefox windows came to life and Cucumber walked
through some steps.

Some of the matchers malfunctioned but I feel like I am making some
progress.

Recap:
  - Cucumber wants to start a broken Selenium-server
  - I prevent that by starting a  selenium-server-1.0.1 by hand before
I run Cucumber

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to