library for Robot Framework
- Image processing is using PILLOW instead of Image Magick ( all dependenices with choco removed)
- Remove Support for Python 2.7
- Remove Keywords that are better supported via RPAFramework
- better support python3 add automatic test in github, also automatic release in https://pypi.org
Robot framework is great tools but there is always some functions that were missing, to solve it issues this library were created. Also to make environment more consistent.
Link to Keyword Documentation
To use it add Library "TestToolsMK" to your robotframework projects
*** Settings ***
Documentation This test show how to create delta gif and evaluate if screenshot are similar
Library TestToolsMK
Library SeleniumLibrary
*** Test Cases ***
Example Test
Open Browser Extension https://www.google.com/search?hl=en&q=test browser=gc width=1366 height=768 x=0 y=0
${path1} Capture Page Screenshot
Go To Smart https://www.bing.com/search?q=test
${path2} Capture Page Screenshot
${delta} Compare Image Files ${path1} ${path2}
Log To Console ${delta}
${delta value} Image Should Be Difference Less Then ${path1} ${path2} difference_percent=3
[Teardown] Close All Browsers
- Python 3.9 // tested on linux
Best way to setup is to use following commands , skip steps that you already have
windows
pip install -U robotframework-MarcinKoperski
linux
sudo pip install -U robotframework-MarcinKoperski