Agile Web Development

Build it. Launch it. Love it.

Selenium RC

Does what the other selenium plugins claim to do. I tried them and they were very difficult (and for me, impossible) to set up, so we just made our own recipe which works.

This plugin automatically starts and stops the servers needed to run selenium. It also allows you to just use open "/" instead of having to constantly use @selenium.open "/".

All you need to do is require the SeleniumTestHelper module in your selenium test and you are on your way.

Sample use:

require File.dirname(FILE) + ’/../test_helper’

class FakeModelTest < Test::Unit::TestCase

  include SeleniumTestHelper
  sleep 2

  def test_it
    open "/"
    assert is_text_present("Welcome aboard")
  end

end

Just untar the downloaded archive into your vendor/plugins directory. More info is provided in the README.

Vitals

Home http://siannopollo.blogspot.com
Repository http://ez-files.net/download.php?file=5f834ea10c75dd5d4fc35e968840f5ac
License Rails' (MIT)
Tags Tag_red
Rating (2 votes)
Owner Steve Iannopollo & Adam Williams
Created 15 April 2007

Comments

  • 22 July 2007

    Selenium TestRunner or Selenium on Rails can handle almost all testing needs without having to install Selenium RC and have it running separately.

Add a comment