Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
unobstructed qa browser automation - cucumber + watir-webdriver + best practices rolled into one
Ruby JavaScript CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
demo_test_site
lib
sites
test
.autotest
Gemfile
Gemfile.lock
History.txt
Manifest.txt
README.rdoc
Rakefile

README.rdoc

whirlwind

DESCRIPTION:

Unobstructed QA Browser Automation

Through sensible conventions along with cucumber and watir-webdriver

FEATURES/PROBLEMS:

  • Centralized location for defining page based elements, such as links, images, tables, text, etc.

  • One can use screen_shot('some image description') from within rspec step definitions, flows and elements. All images taken during cucumber's execution are embedded into an html report.

  • Flow objects are automatically created for you and accessible from within rspec step definitions, flows and elements. This includes flows from all sites, not just the site running for the current cucumber feature.

  • A browser instance is automatically instantiated, you never have to manually call a browser and is accessible through the instance variable @browser

  • Fixture data is automatically loaded into an instance var @test_data and is accessible from rspec step definitions, flows and elements. @test_data takes the form:

    @test_data[site_name][fixture_file_without_suffix][keys to load from fixture file]

    For example, say you want to access a manager in the test environment from a fixture file located at sites/demo/conf/users.yaml you would:

    @test_data['demo'][:users][:test][:manager]

    Note, here 'demo' is used for the site name, but a global vairable $site_name is also available and set to the site name for feature(s) that are executing.

SYNOPSIS:

To create a local snapshot from the current installed version:
whirlwind --snapshot /some/path/

General options:
--environment # set to a name that is used to organize your fixture data.
                For example, test, dev, prod
--browser # set to a valid selenium-webdriver supported browser
--site # optional, if the test site name is provided run all features
       # for that site.  If this is not provided pass a feature file
       as the last argument

To execute the example demo site test.  This assumes you have started
the demo site located under demo_test_site.

cd /local/snapshot/dir
./bin/whirlwind --site sites/demo --browser ff --environment test

Test results are stored under sites/<site_name>/results.

INSTALL:

LICENSE:

GPLv3: www.gnu.org/licenses/gpl.html

Copyright © 2011 Cliff Cyphers

Something went wrong with that request. Please try again.