ImageCompare Library for Robot Framework®
A library for simple screenshot comparison. Supports image files like .png and .jpg.
Image Parts can be ignored via simple coordinate masks or area masks.
See Keyword Documentation for more information.
Install robotframework-imagecompare
Installation via pip
pip install --upgrade robotframework-imagecompare
Examples
Check the /atest/Compare.robot test suite for some examples.
Testing with Robot Framework
*** Settings ***
Library ImageCompare
*** Test Cases ***
Compare two Images and highlight differences
Compare Images Reference.jpg Candidate.jpg
Use masks/placeholders to exclude parts from visual comparison
*** Settings ***
Library ImageCompare
*** Test Cases ***
Compare two Images and ignore parts by using masks
Compare Images Reference.jpg Candidate.jpg placeholder_file=masks.json
Compare two PDF Docments and ignore parts by using masks
Compare Images Reference.jpg Candidate.jpg placeholder_file=masks.json
Different Mask Types to Ignore Parts When Comparing
Areas, Coordinates
[
{
"page": "1",
"name": "Top Border",
"type": "area",
"location": "top",
"percent": 5
},
{
"page": "1",
"name": "Left Border",
"type": "area",
"location": "left",
"percent": 5
},
{
"page": 1,
"name": "Top Rectangle",
"type": "coordinates",
"x": 0,
"y": 0,
"height": 10,
"width": 210,
"unit": "mm"
}
]
More info will be added soon
Metadata
Release files for robotframework-imagecompare 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robotframework_imagecompare-0.2.0.tar.gz | 11.3 kB | Without provenance | Details for robotframework_imagecompare-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robotframework_imagecompare-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for robotframework_imagecompare-0.2.0-py3-none-any.whl |
Total release size: 23.8 kB
Release files / robotframework_imagecompare-0.2.0.tar.gz
| Download URL | robotframework_imagecompare-0.2.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1b0a4e6719683172456bacdd496501dce420459e55b96e3813b74d13f9e50e7
|
|
BLAKE2b-256 checksum How to use checksums |
df580dd8a779f80774435fc5ca6287e77f4f6b6634b964770c6240c03574a959
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.2 Windows/10
|
Release files / robotframework_imagecompare-0.2.0-py3-none-any.whl
| Download URL | robotframework_imagecompare-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42b916f7905fb95ec09d00514d02343629d1099defe5edf8d7f2febb7480e21b
|
|
BLAKE2b-256 checksum How to use checksums |
d00ee8889af20b4384a0afe5c1e99f96903d6c9e26f1ac3c1e68f5b8040fead1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.2 Windows/10
|
Security for robotframework-imagecompare 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.