Skip to main content

Package for nothing

Project description

Watchmen

Custom library for comparing images with use in RobotFramework. It can be used as free functions to import into another language RF example: Library path Python example:import watch.py

What you need

Main

How to install in RF

  • Download git file (Mainly ./Python/watch.py)
  • You must first eneter the path to Settings => Library path, where path is the path to the watch.py file
  • Now, you can start using keywords listed below. Keep in mind that you need to have all necessities installed to work properly

Description Keyword

It is always necessary to ensure that the images are the same resolution (size) !!!!

Keyword Arguments Documentation
Compare two image path1, path2 It compares two images from the two paths and, if there are differences, saves the image with the errors highlighted in the folde: ../Save Image

path1 = path to the first image to be compared

path2 = path to the second image to be compared

Example: Compare two image ../image1.png ../Image2.png

Compare screen path1 Compares the already saved image with the screen that is on the screen. If there is a difference, it saves the highlighted image to the ../Save Image

path1 = path to the image to be compared to screen

Example: Compare screen ../image1.png
Compare making area x1, y1, x2, y2 Creates a cut-out from the screen that is on screen and saves it in the folder: ../Create area

x1 a y1 = x and y coordinates for the upper left corner of the square

x2 and y2 = x and y coordinates for the bottom right corner of the square

Example: Compare making area 0 0 25 25

Compare screen area x1, y1, x2, y2, path1 Creates a cut-out from the screen that is on the screen and compares it to a previously created

x1 and y1 = x and y coordinates for the upper left corner of the square

x2 and y2 = x and y coordinates for the bottom right corner of the square
path1 = Path to an already created viewport with which we want to compare the viewport created by us

Example: Compare screen area 0 0 25 25 ../Crop_Image1.png Creates Crop_Image1.png from 0, 0, 25, 25
Compare screen without areas path1 *args Compares two pictures, that have parts to be ignored

x1 and y1 = x and y coordinates for the upper left corner of the ignored area square

x2 and y2 = x and y coordinates for the lower right corner of the square of the ignored part

Attention! It is always necessary to enter in order x1 y1 x2 y2 x1 y1 x2 y2 etc ...

Compare screen without areas ../Image1.png 0 0 30 40 50 50 100 100 Creates 2 ignored parts at 0,0, 30,40 and 50, 50, 100, 100
Compare making rescreens *resolution Creates a screenshot on the screen, that corresponds to the specified resolution, so it is possible to create on one page an infinite number of screens with different resolutions. Screens are stored in the folder: ../Create rescreens

*resolutin = The specified resolution in width and height format, you can enter as many as needed

Example: compare making rescreens 800 600 1280 800 1440 900 Creates 3 screens in 800x600 1280x800 and 1440x900

How it looks screen

Image for comparison for Compare screen, Compare screen without areas and from Compare making rescreens

Image where the differences are stored + You can see two black box in left corner. These black box are ignored in compare.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Watchmen-0.0.7.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

Watchmen-0.0.7-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file Watchmen-0.0.7.tar.gz.

File metadata

  • Download URL: Watchmen-0.0.7.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for Watchmen-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9107e9e1f3a3291ffbf05ca619149dd558baeae004738b26583ce111254c3098
MD5 f52826443fc95ce4d0b1757c78d3e87b
BLAKE2b-256 8d88b049a18d738ecb540cf4bed9146e24a282a6215fb782258e5b82983b9985

See more details on using hashes here.

File details

Details for the file Watchmen-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: Watchmen-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for Watchmen-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 07a5d050bb8b93e94f01f1b6ab651b90a4588cbd4792953faf3b5ce07a2cfe46
MD5 4cc00ae5ba54bb0744565a50bbba6d65
BLAKE2b-256 794fc05f09d244e8add9359023ee5c5e03cad8cb52802db4f5fcda3112ff133b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page