Skip to content

Full page screenshot comparison (visual regression testing) can be used with Java, Groovy ...

Notifications You must be signed in to change notification settings

Ebazhanov/visual-regression-ashot-selenide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Full page screenshot comparison (visual regression testing) can be used with Java, Groovy ...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages