[ANN] Selenium testing plugin


#1

Greetings,

I’ve just finished a new release of my Selenium testing plugin with much
tighter integration to rails. The rake selenium step has been removed as
all tests are now live (just save your test file and refresh the
browser).

Install it with:

script/plugin install
http://svn.viney.net.nz/things/rails/plugins/selenium_testing

And check out the readme:
http://svn.viney.net.nz/things/rails/plugins/selenium_testing/README

For those who don’t know, this plugin allows you to write Selenium tests
like this:

class PersonSeleniumTest < Test::Unit::TestCase
fixtures :people

def setup
  open :controller => 'person', :action => 'view', :id => 1
end

def test_add_new_person
  click           'add_new_person_link'
  assert_visible  'add_new_person'
  type            'new_person_first_name', 'Pixel'
  type            'new_person_last_name', 'the Cat'
  select          'new_person_gender', 'Male'
  click_and_wait  'submit_add_new_person'
  assert_text     'person_name', 'Pixel the Cat'
end

end

100% Ruby and proud of it :wink:

Comments/feedback/patches welcome.

-Jonny.