Skip to content

agiletrailblazers/Anthem-ATDD-Tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Tests

Languages and Technologies

  • Ruby
  • Selenium
  • Cucumber/Gherkin
  • Text Editor or IDE (SublimeText, Atom, Notepad++, Eclipse)
  • Firefox

Setup Steps

Install Firefox
Note: On Windows, if FF is installed in a non standard location (i.e. outside Program Files) the you must add the FF directory to your PATH environment variables in Windows.

Mac Installation

Install Ruby & Cucumber:

$> brew install ruby
$> gem install bundler
$> sudo gem install selenium-webdriver
$> gem install cucumber
$> gem install rspec

Windows Installation

Use the Windows Ruby Installer: http://rubyinstaller.org/

  • Download RubyInstaller for Ruby 2.2.4
  • Install in a directory that does not contain spaces in its path (such as C:\Ruby, but not C:\Program Files\Ruby)
  • Download the Ruby Development Kit (RDK) for your associated Ruby Installer (check the instructions on the side of the page)
  • Run the RDK installer and extract it somewhere permanent (for convenience, consider extracting it in the same directory as where you installed Ruby)
  • Navigate to the DevKit via command prompt and execute the following two commands:
$> ruby dk.rb init
$> ruby dk.rb install
  • To verify everything works, try installing the necessary gems:
$> gem install bundler
$> gem install selenium-webdriver
$> gem install cucumber

(Instructions sourced from https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

Linux (Ubuntu) Installation

Install Ruby:
http://tecadmin.net/install-ruby-on-rails-on-ubuntu/

$> gem install bundler
$> sudo apt-get install ruby-dev
$> sudo gem install selenium-webdriver
$> gem install cucumber
$> gem install rspec

Install headless Xvfb Firefox Browser:
http://www.installationpage.com/selenium/how-to-run-selenium-headless-firefox-in-ubuntu/

Running Cucumber

$> cucumber env={ENVIRONMENT}
ENVIRONMENTS PARAMS:

  • dev
  • test

The default value is 'dev' if no 'env' parameter is specified
# Anthem-ATDD-Tests

About

Selenium test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published