RobotFramework Marcin Koperski bundle
Project description
robotframework-MarcinKoperski
===============
library for Robot Framework
.. image:: https://travis-ci.org/IlfirinPL/robotframework-MarcinKoperski.png
:target: https://travis-ci.org/IlfirinPL/robotframework-MarcinKoperski
.. image:: https://img.shields.io/pypi/v/robotframework-MarcinKoperski.svg
:target: https://pypi.python.org/pypi/robotframework-MarcinKoperski
.. image:: https://img.shields.io/pypi/l/robotframework-MarcinKoperski.svg
:target: http://www.gnu.org/licenses/agpl-3.0.html
.. contents::
:local:
=================================================
Introduction
------------
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.
Keyword documentation
---------------------
Link to `Keyword Documentation`_
.. _`Keyword Documentation`: http://ilfirinpl.github.io/robotframework-MarcinKoperski/doc/TestToolsMK.html
Example
------------
To use it add Library "TestToolsMK" to your robotframework projects
.. code:: robotframework
*** 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
Prerequisites
-------------
- `Microsoft Visual C++ Compiler for Python 2.7`__ // for windows only
- `Chocolatey`__ // for windows only
- `Python 2.7.X`__ // for windows only
__ http://www.microsoft.com/en-us/download/details.aspx?id=44266
__ https://chocolatey.org/
__ https://www.python.org/downloads/
Installation
------------
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 robotframework
pip install robotframework-MarcinKoperski
linux
::
sudo apt-get install imagemagick
sudo pip install robotframework
sudo pip install robotframework-MarcinKoperski
Update
------------
To install using latest stable build use
::
pip install -U robotframework-MarcinKoperski
to install from sources may install unstable release
::
pip install --upgrade https://github.com/IlfirinPL/robotframework-MarcinKoperski/archive/master.zip
===============
library for Robot Framework
.. image:: https://travis-ci.org/IlfirinPL/robotframework-MarcinKoperski.png
:target: https://travis-ci.org/IlfirinPL/robotframework-MarcinKoperski
.. image:: https://img.shields.io/pypi/v/robotframework-MarcinKoperski.svg
:target: https://pypi.python.org/pypi/robotframework-MarcinKoperski
.. image:: https://img.shields.io/pypi/l/robotframework-MarcinKoperski.svg
:target: http://www.gnu.org/licenses/agpl-3.0.html
.. contents::
:local:
=================================================
Introduction
------------
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.
Keyword documentation
---------------------
Link to `Keyword Documentation`_
.. _`Keyword Documentation`: http://ilfirinpl.github.io/robotframework-MarcinKoperski/doc/TestToolsMK.html
Example
------------
To use it add Library "TestToolsMK" to your robotframework projects
.. code:: robotframework
*** 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
Prerequisites
-------------
- `Microsoft Visual C++ Compiler for Python 2.7`__ // for windows only
- `Chocolatey`__ // for windows only
- `Python 2.7.X`__ // for windows only
__ http://www.microsoft.com/en-us/download/details.aspx?id=44266
__ https://chocolatey.org/
__ https://www.python.org/downloads/
Installation
------------
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 robotframework
pip install robotframework-MarcinKoperski
linux
::
sudo apt-get install imagemagick
sudo pip install robotframework
sudo pip install robotframework-MarcinKoperski
Update
------------
To install using latest stable build use
::
pip install -U robotframework-MarcinKoperski
to install from sources may install unstable release
::
pip install --upgrade https://github.com/IlfirinPL/robotframework-MarcinKoperski/archive/master.zip
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for robotframework-MarcinKoperski-0.0.41.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6373cad7c7c9c22c22c7017976619f52a7a0313774fd65979f47bf4ee69a85b7 |
|
MD5 | 1dda047ceb9e8d90b9f4dc69ac4bfbb5 |
|
BLAKE2b-256 | 72942183d6fe6832c8b361d9a5af64120efcf4d7b954f4db44317910caad7d5c |