About
ImageLibrary is designed to automate cases involving various types of screen processing with RoboFramework.
It operates with:
- OpenCV
- PIL
- TesseractOCR
Installation
pip install robotframework-imagelibrary
Keywords
Search for lates 0.2.0 version before big refactoring on https://pypi.org/project/robotframework-imagelibrary/#history
Buttons guide
Installation Requirements
-
Python 3.5+
-
Robot Framework
-
For number and text recognition. May not be installed if not planned to use.
Install the 3.02 version for your OS
- Important info *
Image Library MUST be initialized in Suite Setup before use by calling the keyword Init with specified arguments (see docs).
When Init is called library reads the yaml config and tries to locate given templates images (png files) in the provided dir with stored screenshots. If any name is not found library will throw and error.
If all the data is correct library memorizes it and creates keyword objects (templates, buttons, zones) to use them in Keywords call. This helps to pass to Keyword desired arguments just as names to make them more readable.
All the objects are destroyed when test execution is complete.
Usage
Implement the ImageLibrary into robot test suite file with specifying (optional) the output directory to store screenshots.
If directory not specified - execution dir is used.
Example
Library ImageLibrary screenshot_folder=${CURDIR}${/}output
Create the yaml config file (read from Keyword documentation) and specify windows and its
contents: zones, templates, buttons and window existence criteria.
Call in Keywords window contents by its name.
Example
${is_on_screen} = Is Template On Screen template=gummi
Wait For Window - main window supposed to be called and mustn't be passed as argument
Wait For Show window=settings
${num} = Get Number From Zone zone=price resize_after=30 contrast=1
Zones Coordinates are taken in such format [x, y, w, h]: [123, 34, 12, 10]
| x - from the top left corner of the desired window
| y - top position from the desired window
| w - width
| h - height
Metadata
Release files for robotframework-imagelibrary 1.0.1
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-imagelibrary-1.0.1.tar.gz | 44.2 kB | Without provenance | Details for robotframework-imagelibrary-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robotframework_imagelibrary-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for robotframework_imagelibrary-1.0.1-py3-none-any.whl |
Total release size: 103.5 kB
Release files / robotframework-imagelibrary-1.0.1.tar.gz
| Download URL | robotframework-imagelibrary-1.0.1.tar.gz |
|---|---|
| Size | 44.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eddf70b93a976cd033e3d2597691066982eab5a5c482c3d3a1afc6410dcbb4f8
|
|
BLAKE2b-256 checksum How to use checksums |
2a441fca2998aca96e6c0123061c525c858eb450c2a3402455811ad0859f44b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / robotframework_imagelibrary-1.0.1-py3-none-any.whl
| Download URL | robotframework_imagelibrary-1.0.1-py3-none-any.whl |
|---|---|
| Size | 59.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aecc93ad2ccf2dca99c789e7d9fc4e813cd31908cda2d9ce58e1c852ddea71d9
|
|
BLAKE2b-256 checksum How to use checksums |
18642d9a4e6241ace8d08a8bd6fd275005b7c84bbceb1166a65f1c83008b5603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for robotframework-imagelibrary 1.0.1
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.