library for Robot Framework
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 evalute if screenshot are similar
Library TestToolsMK
Library Selenium2Library
Library Collections
*** Test Cases ***
Example Test
Image Self Check
Open Browser Extension https://www.google.com/search?hl=en&q=test browser=ff width=1366 height=768 x=0 y=0
${path1} Capture Page Screenshot Extension
Go To Smart https://www.google.com/search?hl=en&q=testX
${path2} Capture Page Screenshot Extension
Comment Show list of screenshot taken during test
Log List ${list of screenshots}
${delta value} Image Should Be Difference Less Then ${path1} ${path2} difference_percent=2 embedded_gif=True
[Teardown] Close All Browsers
- Microsoft Visual C++ Compiler for Python 2.7 // for windows only
- Chocolatey // for windows only
- Python 2.7.X // for windows only
- Python 2.7,3.6,3.7 // tested on linux
Best way to setup is to use following commands , skip steps that you already have
windows
choco install pip choco install imagemagick.tool setx MAGICK_HOME "C:\ProgramData\chocolatey\lib\imagemagick.tool\tools" pip install -U -r https://raw.githubusercontent.com/IlfirinPL/robotframework-MarcinKoperski/master/requirements.txt pip install -U git+https://github.com/IlfirinPL/robotframework-MarcinKoperski.git
linux
sudo apt-get install imagemagick sudo pip install -U -r https://raw.githubusercontent.com/IlfirinPL/robotframework-MarcinKoperski/master/requirements.txt sudo pip install -U git+https://github.com/IlfirinPL/robotframework-MarcinKoperski.git
To install using latest stable build use
sudo pip install -U -r https://raw.githubusercontent.com/IlfirinPL/robotframework-MarcinKoperski/master/requirements.txt sudo pip install -U git+https://github.com/IlfirinPL/robotframework-MarcinKoperski.git