Automating Visual Regression using ‘Galen’ and ‘Wraith’
Deepshikha Singh| QA Lead | @deeps_qa
Automating Visual Regression using Galen and Wraith Deepshikha - - PowerPoint PPT Presentation
Automating Visual Regression using Galen and Wraith Deepshikha Singh| QA Lead | @deeps_qa Problems in Layout Testing Manual efforts are high. Possible chances of missing key areas of regression. Not possible to validate
Deepshikha Singh| QA Lead | @deeps_qa
devices.
○ Built-in capture software ○ Install it as a dependency
○ To compare against
○ Screenshot comparison
○ Highlights the differences in specific color ○ Outcome as Pass or Fail
dimensions.
@objects Header id header Logo-box css .logo-box Search-bar xpath //input[@class=‘searchBar’]
=Test Global Header= @ on desktop Header: height 40px width 900px centered horizontally inside screen @ on mobile, desktop Logo-box: css color is “rgba(51, 51, 51, 1)” css background-color is “rgba(120, 190, 32, 1)” Search-bar: below: header 0px
tion
galen check homepage.gspec
Example: galen check specs/galen.spec --url "http://www.example.com" --size "1366x768" --include "desktop" --htmlreport "reports"
@@ set domain http://www.example.com @@table devices @@parameterized using devices Home page on ${device} device selenium chrome ${domain} ${size} check specs/galen.spec --include "${tags}"
galen test tests/galen.test --htmlreport "reports"
○ Capture ○ History ○ Spider
○ Generates a diff.png and a data.txt ○ Generates gallery.html cont...
○ Supported in Casper mode ○ Allows to test interactive content
samples.
Tutorials
http://mindengine.net/
Documents
http://galenframework.com/docs/all/
Sample Project
http://galenframework.com/docs/tutorial-first-project/
Galen Spec Language
http://galenframework.com/docs/reference-galen-spec-language-gui de/