/WebUIRegression

Visual Regression Test Repo

Primary LanguageJavaScriptMIT LicenseMIT

grunt-web-regression

Grunt Plugin to run CasperJS based tests for web regression, and thereafter compare results to identify ui mismatch

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins.

Web regression works in two modes:

Reference Mode generates the initial screenshots.

grunt reference --testconfig=google_test_config

After every change, run it in validate mode to identify the differences.

grunt validate --testconfig=google_test_config

How "web_regression" works

Working Example

In your testconfig file insert.

{
	"url": "https://www.google.co.in",
	"scriptfile": "./scripts/test/googlecode.js",
	"testname": "Google",
	"browser": "iPhone5_h",
	"casperOptions": ["--ignore-ssl-errors=true", "--ssl-protocol=any"]
}

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

First Release https://github.com/FidelityInternational/WebUIRegression/releases/tag/0.0.1