Skip to content

Exercise using Ruby, Cucumber, watir-webdriver and page-object.

Notifications You must be signed in to change notification settings

veromeneses/barebones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barebones

This is an exercise where I've implemented a basic Cucumber test framework using watir-webdriver and page object model. In this exercise I'm performing some tests on some well known websites. I've used the page-object gem for easy implementation of page object model.

Requirements

  • Ruby 2.3.1
  • Bundler gem
  • Firefox 46 or 47.0.1, but not 47.

Install

Ruby can be installed following the instructions on its website

To install Bundler gem + other gem dependencies:

make env

Run

To execute all the tests in this repo and generate HTML report

make test

To install gem dependencies and run all tests

make all

To run features in parallel

make parallel

More options can be found in the Makefile.

Notes about this exercise

  1. Not using backgrounds as scenarios are small enough so it wouldn’t make much of a difference.
  2. Not using scenario outlines as I didn’t see the need since I’m not testing several similar test cases with different inputs and outputs.
  3. Not using headless mode (at this point) as I wanted to see the tests executing.
  4. Not using config files to set up hosts or timeouts at this point as it wasn't necessary for the bare bones version.
  5. Not sure about best location for pages. They're living in a lib folder for now.

TODOs

  1. Implementing my own page objects without the need for the page-object gem.
  2. Implementing option to run in PhantomJS.

About

Exercise using Ruby, Cucumber, watir-webdriver and page-object.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published