simplexframe

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.

Install simplexframe

Install simplexframe from rubygems

    gem install simplexframe

Or clone from github, build the gem and install

If you have any issue when install simplexframe, install the gems below:

    gem install thor

Create a simplexframe project

In windows, open command console and type just like below:

    simplexframe new your_project_name

Run Examples

Simplexframe contains some examples that explain how to use simplexframe writing your own test cases.

By default, simplexframe 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
    simplexframe go

Simplexframe go command supports all the rspec options and it is the recommend way.

You can find test report in app/reports folder. It is a html file with current time stamp.

Using Console

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

    cd your_project_name
    simplexframe c

Simplexframe will load all your pages, start irb and open browser which was defined in your config.yml.

Then you can use $navi variable the same way in your test file.

    p = $navi.goto_baidu_page
    p.keyword="watir-webdriver"
    p.search_element.click

You can type everything just like you are write a text case.

Understand project structure

Simplexframe project has a clean and simple structure.

Contributing to simplexframe

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