https://github.com/ameyanatu/compare-screenshots
Compare screenshots and save difference screenshots
https://github.com/ameyanatu/compare-screenshots
robot-framework robotframework
Last synced: 3 months ago
JSON representation
Compare screenshots and save difference screenshots
- Host: GitHub
- URL: https://github.com/ameyanatu/compare-screenshots
- Owner: ameyanatu
- License: gpl-3.0
- Created: 2018-11-19T17:36:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:59:42.000Z (almost 3 years ago)
- Last Synced: 2025-04-06T20:36:01.632Z (7 months ago)
- Topics: robot-framework, robotframework
- Language: HTML
- Homepage:
- Size: 2.93 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# compare-screenshots
[](http://hits.dwyl.io/ameyanatu/compare-screenshots)
[](https://github.com/ameyanatu/compare-screenshots/blob/master/compare-screenshots.py/graphs/commit-activity)
[](https://github.com/ellerbrock/open-source-badges/)
[](http://perso.crans.org/besson/LICENSE.html)
----------------------------------------------------------------------------------------------------------------------------------------
[](https://www.python.org/)
----------------------------------------------------------------------------------------------------------------------------------------#### This is a Robot Framework library. Using this library we can do screenshots comparison which is an essential part of visual testing using Robot Framework.
| Keyword | Description |
| ------------- | ------------------------------ |
| `compare screenshots`| This is the main keyword which actually does a comparison, this keyword takes three arguments path_to_baseline_screenshots, path_to_compare_screenshots and path_to_save_differencefound_screenshots|
| `create report`| This keyword creates a text file report of the comparison, like how many screenshots have differences, this keyword takes three arguments path_to_baseline_screenshots, path_to_compare_screenshots, and path_to_save_differencefound_screenshots|
| `move all difference found screenshots`| This keyword will move all the difference found screenshots from path_to_compare_screenshots To path_to_baseline_screenshots#### How to use this library:
1. Download 'compare-screenshots.py' from this repository.
2. Download 'Requirements.txt' and install all the necessary packages before using this library.
3. Copy 'compare-screenshots.py' file to your Robot Framework project.
4. Then simply use it in your Robot file and use keywords in your test cases or tasks.##### (Note: This library tested on windows platform, however, I am sure it will work on the Linux platform as well. If you found any issue then please let me know.)
#### For more information regarding this library please read my article on LinkedIn:
https://www.linkedin.com/pulse/compare-screenshots-ameya-natu/#### Credits:
1. RobotFramework (http://robotframework.org/)
2. OpenCV (https://opencv.org/)##### If you have any questions / suggestions / comments on the library, please feel free to reach me on ameyanatu@yahoo.com
[](https://saythanks.io/to/ameyanatu)
[](https://GitHub.com/ameyanatu/)