Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 1.41 KB

File metadata and controls

41 lines (23 loc) · 1.41 KB

Full page Screenshot comparison with 'Ashot'

Ashot

Motivation:

To find free tool to make full screenshots comparison on desktop + tablet/mobile!

Available options

  • ignore elements
  • pixel difference (e.g. withDiffSizeTrigger(10pixel))
  • timeout for time scrolling

Examples:

  • Simple example with all magic is here

  • How it can be in your tests here

How to run:

$ clean test

$ allureReport

$ allureServe

Default browser: Chrome

How you can update screenshots for Visual tests

  • to run failed tests by running your testNG ... .xml suit
  • search for the results in //Resources/ActualScreenshot.png folder, there should be appeared screenshot with Actual ... png in the name
  • once you found your screenshot > exchange part of the name from Actual to Original
  • if you still get screenshot with Difference ... .png double check maybe you have missed ignoreElement

The cool thing is the tests are 100% stable

FYI if you want to try something else look at the video youtube