Archive
Selenium and Ruby setup in Windows
Newbie in Ruby? Never heard Selenium? Had a reformat?
No sweat! Here’s a list of requirements to set up Selenium and Ruby in your Windows machine.
SELENIUM Remote-Control (RC )
–> is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser.
- get it here
- extract the file anywhere in you local machine
JAVA
–> Requirement to run the selenium server, should be 1.5 or later version
- get it here
- install Java and configure your PATH environment variable correctly.
- from the console, you can verify the installation by typing: java -version
SELENIUM RC RUBY CLIENT DRIVER
- requires Ruby
- recommended way to install: Ruby 1.8.6 One-Click Installer
- upgrade to latest version by getting the latest binary files of Ruby 1.8.7
Rubygems
- get the latest rubygem distribution as tgz or zip from here
- extract the archive to your desired directory
- 2 ways to install ruby:
from the console, go to the extracted directory then type: ruby setup.rb
from your explorer, go to the extracted directory and double click setup.rb file
- install the ruby client driver as a rubygem by typing: gem install <ruby gem>
gem install selenium-client
- install other gems that will be useful in your testing:
gem install rspec -v=1.2.6
gem install syntax
gem install faker
BDoc documentation
–> guide for all your rubygems documentations
- from the console type: gem install aptinio-bdoc
- then save the doc to your local, from the console type: bdoc //[path]
To get scripts or file from a repository through Git
- from the console, install github, bash or gui OpenInGitGui-2.0.zip
- generate an SSH rsa, type: $ ssh-keygen -t rsa
- copy the generated id_rsa pub
- paste it on the personal settings of ur public_key
- then clone
Recent Comments