gsluthra / cucumber-capybara-test

A simple framework using Cucumber, Capybara, Poltergeist and PhantomJS to test Web Applications / web sites

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing a remote app with Cucumber+Capybara+Poltergeist+PhantomJS

Granted, this is a really simple combination, but I ran into a few hurdles on my first attempt, and thought someone might benefit from my feeding github this working, minimal example of using Cucumber, Capybara, Poltergeist and PhantomJS to execute web tests against a remote application.

Make sure you install PhantomJS first on your machine. For mac osx, you can just do a brew install phantomjs. If you have rvm installed on your machine (recommended), then I have already checked in .ruby-version and .ruby-gemset to ensure your gem installation doesn't clash with existing ruby environment setups.

Steps to run the tests

bundle install
bundle exec cucumber

Further Reading / Reference to writing Capybara tests

About

A simple framework using Cucumber, Capybara, Poltergeist and PhantomJS to test Web Applications / web sites


Languages

Language:Ruby 94.1%Language:Gherkin 5.9%