Getting Started

Installing rbenv

To install rbenv type:

brew install rbenv

Add to ~/.bash_profile:

eval "$(rbenv init -)"

List all available versions:

rbenv install -l

Install a Ruby version:

rbenv install 2.3.1

Sets a local application-specific Ruby 2.3.1:

rbenv local 2.3.1

Installing bundler

To install bundler type:

gem install bundler

Windows Caveats

Preparing Internet Explorer
  1. Check zoom level. It must be configured to 100%:

  2. Disable 'Protected Mode' for all zones on Internet Options > Security:

Install FFI

To install FFI package type:

bundle install ffi --platform ruby

Installing gems

To install gems type:

bundle install

Drivers:

Install and include in PATH - chromedriver - phantomjs - internetExplorerDriver - Firefox Geckodriver

Install Webdriver Safari extension.

Run tests in DEV with Chrome

Type this in the tests folder:

bundle exec cucumber

Run tests in DEV with Firefox

Type this in the tests folder:

bundle exec cucumber -p firefox -p dev

Run tests in DEV with Safari

Type this in the tests folder:

bundle exec cucumber -p safari -p dev

Run tests in DEV with Poltergeist

Type this in the tests folder:

bundle exec cucumber -p poltergeist -p dev

Run tests in HMG with Chrome

Type this in the tests folder:

bundle exec cucumber -p chrome -p hmg

Run tests in HMG with Firefox

Type this in the tests folder:

bundle exec cucumber -p firefox -p hmg

Run tests in HMG with Safari

Type this in the tests folder:

bundle exec cucumber -p safari -p hmg

Run tests in HMG with Poltergeist

Type this in the tests folder:

bundle exec cucumber -p poltergeist -p hmg

HTML Report

Type this in the tests folder:

bundle exec cucumber -p html_report

Run with tags

Type this in the tests folder:

bundle exec cucumber --tags @run