magicspec

A simple web automation test framework using selenium-webdriver}[http://docs.seleniumhq.org/projects/webdriver/],{watir-webdriver}[https://github.com/watir/watir-webdriver],{page-object and rspec.

This should get you up and running magically. Much like rails this should scaffold tests and make it easy to add new specs an pages using generators and templates.

Install magicspec

Install magicspec from rubygems

    gem install magicspec

Or clone from github, build the gem and install

Create a magicspec project

Open a command console and type just like below:

    magicspec new your_project_name

Run Examples

Lazyman contains some examples that explain how to use magicspec writing your own test cases.

By default, magicspec runs examples using chrome browser, so make sure you installed google chrome and according chrome driver

Using following command to make everything running.

    cd your_project_name
    rspec

Add a new spec

Add a new page

Using Console

You can use eat console to debug your test in irb.

    cd your_project_name
    magicspec c

Understand magicspec project structure

A magicspec project has a clean and simple structure.

Contributing to magicspec

Copyright © 2013 easonhan. See LICENSE.txt for further details.