Home > ruby, selenium, ubuntu > Selenium-Ruby Installations in Linux

Selenium-Ruby Installations in Linux

In relation to my previous post on Selenium and Ruby setup in Windows, here’s an installation guide for Linux peeps:

1. Install JRE

- In your terminal type: sudo apt-get install sun-java6-jre

- To verify type: java -version

Note: Java version should be 1.5 or higher versions

2. Install Ruby

- In your terminal, type: sudo apt-get install ruby

- To verify type: ruby –version

Note: ruby 1.8.7 works with rspec version <= 1.3.1

3. Install Rubygems

- From the terminal, type: sudo apt-get install rubygems OR you can follow this tutorial Installing RubyGems

- To verify type:  gem –version

4. Install other useful gems

  • Rake ( to create a task that runs set of tests )

- Type: sudo gem install rake

- To verify type:  rake –version

  • Selenium-client ( API to drive Selenium tests from Ruby )

- Type: sudo gem install selenium-client -v 1.2.18

- To verify type: gem list selenium-client

Note: selenium-client 1.2.18 works with rspec version 1.2.8

  • Rspec ( to define executable examples of the expected behaviour of your code )

- Type: sudo gem install rspec -v 1.2.8

- To verify type: spec –version

  • Faker ( to easily generate fake data: names, addresses, phone numbers, etc. )

- Type: sudo gem install faker

- To verify type: gem list faker

About these ads
Categories: ruby, selenium, ubuntu Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: