pivotal / polonium

Selenium RC with Rails integration and enhanced assertions.

This URL has Read+Write access

commit  bd290a40575e0bc89630a8b266fab53419441e8b
tree    d278b76c0629511df0e5e5b2d982e1b79f92942c
parent  dc98f063501b5a426cfd86c0116858c4c535856c
polonium / README
100644 54 lines (33 sloc) 1.846 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
== Introduction
 
Welcome to Polonium!
 
Polonium is a wrapper for Selenium that lets your write cleaner Selenium tests
in ruby, and run them with a simple set of rake tasks.
 
== Installation
Polonium depends on the Selenium gem. To install this dependency, run:
  sudo gem install Selenium
 
The current version of this plugin can be found at: http://rubyforge.org/var/svn/pivotalrb/polonium/trunk
 
You may install the plugin with the following command:
 
  script/plugin install svn://rubyforge.org/var/svn/pivotalrb/polonium/trunk
 
You may also use Polonium as a gem:
 
  sudo gem install polonium
 
== Getting Started
The polonium plugin rake tasks assumes you have a test/selenium directory with a selenium_suite.rb file in
it. To get started, copy examples/selenium_suite.rb, examples/selenium_helper.rb, and examples/example_test.rb
into your test/selenium directory.
 
To start the selenium server, run the command:
  selenium
The selenium command was installed with the Selenium Gem.
 
You can run Polonium tests using rspec or test/unit through the rake tasks.
  rake selenium:test
  # or
  rake selenium:spec
 
[TODO: this doesn't seem to work on a vanilla project that is using Polonium as a gem & the code in
the examples directory; @selenium_driver is nil. Is there an extra step necessary to get this working?]
 
You can also run individual tests straight ruby:
 
ruby test/selenium/any_selenium_test.rb
 
== Future Enhancements
 
There are a few things we'd like to improve, but we wanted to get this out now. Check the tracker in the pivotal.rb RubyForge project for details.
 
== License
 
Polonium is distributed under the MIT license. Copyright © 2007-2008 Pivotal Labs, Inc.
 
== Contributing
 
Contributions to this plugin are welcome. Contributions should be accompanied by tests. See http://pivotalrb.rubyforge.org for more details.