Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 69 lines (42 sloc) 2.993 kb
1b20da70 » Stephen Hardisty
2012-02-19 first commit
1 # Selenium Conference Workshop
2
db2d81d9 » Stephen Hardisty
2012-02-19 added mention of shortened link
3 Welcome to Etsy's 2012 Selenium Conference workshop! This repository contains the slides, setup and
4 [RSpec](http://rspec.info/documentation/) skeleton for writing some automated tests against the Etsy website.
5
568b2427 » Stephen Hardisty
2012-02-19 added link to readme
6 This repository can be reached by visiting **[etsy.me/selenium2012](http://etsy.me/selenium2012)**
7 and this readme can be reached by visiting **[etsy.me/selenium2012readme](http://etsy.me/selenium2012readme)**.
db2d81d9 » Stephen Hardisty
2012-02-19 added mention of shortened link
8
8a25cb76 » Stephen Hardisty
2012-02-19 (hopefully) clarified setup
9 ## Setup
10
11 Perform the following steps to make sure you are all setup and ready for the workshop. Not to worry if you get stuck,
12 we can assist you or pair you up with somebody.
13
14 The more that can be done before the workshop, the more time we'll have to play.
15
16 ### Ruby & Firefox
1b20da70 » Stephen Hardisty
2012-02-19 first commit
17
18 You should make sure the following dependencies are installed before the session begins...
0a11f8b1 » Stephen Hardisty
2012-02-19 fixed formatting mistakes in readme
19
23094147 » Stephen Hardisty
2012-02-19 Tidied up windows instructions
20 * [Ruby 1.8.7](http://www.ruby-lang.org/en/downloads/) or greater.
1b20da70 » Stephen Hardisty
2012-02-19 first commit
21 * [Firefox](http://www.mozilla.org/en-US/firefox/new/) 3.6 or above.
22
23094147 » Stephen Hardisty
2012-02-19 Tidied up windows instructions
23 To check whether Ruby is installed, try `ruby -v`. Versions newer than 1.8.7 should work fine, as should 1.8.6.
8a25cb76 » Stephen Hardisty
2012-02-19 (hopefully) clarified setup
24 If it is installed, you can skip to **Libraries & Verification**.
0a11f8b1 » Stephen Hardisty
2012-02-19 fixed formatting mistakes in readme
25
8a25cb76 » Stephen Hardisty
2012-02-19 (hopefully) clarified setup
26 #### Installing Ruby for Linux
1b20da70 » Stephen Hardisty
2012-02-19 first commit
27
23094147 » Stephen Hardisty
2012-02-19 Tidied up windows instructions
28 Either...
29
30 * `apt-get install ruby`
31 * `yum install ruby`.
32
8a25cb76 » Stephen Hardisty
2012-02-19 (hopefully) clarified setup
33 #### Installing Ruby for OS X
23094147 » Stephen Hardisty
2012-02-19 Tidied up windows instructions
34
58c9b70a » Stephen Hardisty
2012-04-10 tweaks to example and readme
35 Xcode is a prerequisite for most development on OS X so you should install that first. To install Ruby, either...
23094147 » Stephen Hardisty
2012-02-19 Tidied up windows instructions
36
37 * `brew install ruby`.
38 * `port install ruby`
39
8a25cb76 » Stephen Hardisty
2012-02-19 (hopefully) clarified setup
40 #### Installing Ruby for Windows
23094147 » Stephen Hardisty
2012-02-19 Tidied up windows instructions
41
42 Click [here](http://rubyforge.org/frs/download.php/75851/rubyinstaller-1.8.7-p358.exe) to begin downloading the Ruby installer.
1b20da70 » Stephen Hardisty
2012-02-19 first commit
43
1e52bb90 » Stephen Hardisty
2012-02-22 updated readme and preso
44 Make sure that you select "Add Ruby executables to your PATH" when choosing the destination path.
45
8a25cb76 » Stephen Hardisty
2012-02-19 (hopefully) clarified setup
46 ### Libraries & Verification
1b20da70 » Stephen Hardisty
2012-02-19 first commit
47
a6336c62 » Stephen Hardisty
2012-02-22 updated readme
48 Once Ruby and Firefox are installed, perform the following steps to install the Ruby libraries and tests...
0a11f8b1 » Stephen Hardisty
2012-02-19 fixed formatting mistakes in readme
49
1e52bb90 » Stephen Hardisty
2012-02-22 updated readme and preso
50 * Either clone this repository with [Git](http://git-scm.com/download) (`git clone git://github.com/moowahaha/SeleniumConf2012.git`)
23094147 » Stephen Hardisty
2012-02-19 Tidied up windows instructions
51 or download the latest zipped version from [here](https://github.com/moowahaha/SeleniumConf2012/zipball/master).
27603a5b » Stephen Hardisty
2012-02-19 tweaked wording for setup
52 * Run `sh setup.sh` (Linux & OS X) or `setup.bat` (Windows) to install the required Ruby libraries (or run the commands listed in the respecitve file).
3ac271a8 » Stephen Hardisty
2012-02-19 clarified setup
53 * Try running the (currently failing) tests: `bundle e rspec`.
1b20da70 » Stephen Hardisty
2012-02-19 first commit
54
55 ## How to run...
56
3ac271a8 » Stephen Hardisty
2012-02-19 clarified setup
57 Commands should be prefixed with `bundle e`. This ensures the libraries installed in the previous setup are used.
1b20da70 » Stephen Hardisty
2012-02-19 first commit
58
3ac271a8 » Stephen Hardisty
2012-02-19 clarified setup
59 * To run all tests: `bundle e rspec`.
a6336c62 » Stephen Hardisty
2012-02-22 updated readme
60 * To run all tests from a single file: `bundle e rspec spec/example_spec.rb`.
61 * To run a single test, specify the file and line number, add ':*number*' to the end of the filename: `bundle e rspec spec/example_spec.rb:11`.
1b20da70 » Stephen Hardisty
2012-02-19 first commit
62
63 ## Some links!
64
65 For future reference, here are some handy links...
0a11f8b1 » Stephen Hardisty
2012-02-19 fixed formatting mistakes in readme
66
1b20da70 » Stephen Hardisty
2012-02-19 first commit
67 * [Ruby](http://www.rubyinside.com/media/poignant-guide.pdf) (the programming language).
68 * [RSpec](http://rspec.info/documentation/) (the test framework).
69 * [Capybara](https://github.com/jnicklas/capybara) (how the tests drive the browser).
Something went wrong with that request. Please try again.