Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Automated Visual Testing

Automated Visual Testing

Dec 2018 QE Sharing on Applitools, Wraith and Building Our Own Visual Testing tool aka Freezer (WIP).

https://github.com/sshinnee/freezer

Samantha Wong

December 05, 2018
Tweet

More Decks by Samantha Wong

Other Decks in Technology

Transcript

  1. Wraith - Developed at BBC - Used for checking CSS

    changes; intentional and unintentional Browser Automation Controller Image Comparison Usage Headless Browser CasperJS PhantomJS SlimerJS Selenium Webdriver + ChromeDriver Command Line Existing Library ImageMagick wraith capture config.yml wraith spider config.yml wraith history config.yml
  2. Wraith Promise • takes screenshots of your webpages • runs

    a comparison task across them • outputs a diff PNG file comparing the two images, and a data.txt file which contains the percentage of pixels that have changed • packages all of this up into a gallery.html, ready for you to view • if any screenshot's diff is above the threshold you specified in your configuration file, the task exits with a system error code (useful for CI) • the failed screenshot will also be highlighted in the gallery
  3. Similarity Measures + Mean Squared Error + Structural Similarity Index

    Reference: https://www.pyimagesearch.com/2014/09/15/python-compare-two-images/