Aglet is Cucumber-based test automation framework [kind of all-in-one]
Aglet especially for you, if you're:
- interesting in quality of your project
- looking for something simple to follow BDD approach
- not going to create testing tool from scratch
Grab a copy
git clone https://github.com/artemdwo/aglet.git
Ensure you have following installed:
- Ruby 2.2.0+ (use
rvm
) - Bundler latest (
gem install bundler
) - Selenium WebDriver latest (http://docs.seleniumhq.org/download/)
- Chromedriver latest - to run Google Chrome (
$ brew install chromedriver
) - Geckodriver latest - to run Firefox (
$ brew install geckodriver
)
Check what's already available
# rake -T
Run RAKE_TASK
# rake cuke:[RAKE_TASK]
RAKE_TASK available from:
$ rake -T
- config/cucumber.yml
Run smoke
predefined suite
# rake cuke:smoke
Run suite that will be filtered by @tag
# rake cuke:specific TAGS=@tag
To run tests under specific browser
# ... BROWSER=browser_alias
browser_alias:
- selenium_chrome for Google Chrome
- selenium_firefox for Firefoz
To run tests against specific environment
# ... CONFIG=environment_alias
See config/config.yml, for example default_env, environment_name
Test reports in JSON format:
# ... JSON_OUTPUT=cucumber.json
Test reports in JUNIT format:
# ... JUNIT_OUTPUT=results/