RobotEyes | Image comparison for Robot Framework | Functional Testing library

 by   jz-jess Python Version: 1.5.0 License: MIT

kandi X-RAY | RobotEyes Summary

kandi X-RAY | RobotEyes Summary

RobotEyes is a Python library typically used in Testing, Functional Testing, Selenium applications. RobotEyes has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. However RobotEyes has 25 bugs. You can install using 'pip install RobotEyes' or download it from GitHub, PyPI.

Visual Regression Library for Robot Framework. Uses Imagemagick to Compare Images and create a diff image. Custom Report to view baseline, actual and diff images. View passed and failed tests. Blur regions (only for selenium) within a page to ignore comparison (helpful when there are dynamic elements like text etc in a page). Support SeleniumLibrary(tested) , Selenium2Library(tested) and AppiumLibrary(not tested).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              RobotEyes has a low active ecosystem.
              It has 54 star(s) with 16 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 5 open issues and 26 have been closed. On average issues are closed in 17 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of RobotEyes is 1.5.0

            kandi-Quality Quality

              RobotEyes has 25 bugs (0 blocker, 0 critical, 3 major, 22 minor) and 33 code smells.

            kandi-Security Security

              RobotEyes has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              RobotEyes code analysis shows 0 unresolved vulnerabilities.
              There are 12 security hotspots that need review.

            kandi-License License

              RobotEyes is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              RobotEyes releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              RobotEyes saves you 798 person hours of effort in developing the same functionality from scratch.
              It has 1833 lines of code, 58 functions and 16 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed RobotEyes and discovered the below as its top functions. This is intended to give you an instant insight into RobotEyes implemented functionality, and help decide if they suit your requirements.
            • Compare two images
            • Delete the folder if it exists
            • Cleans up the actuals_passed files
            • Cleanup test paths
            • Parse command line options
            • Capture full screen
            • Redacts selected regions
            • Get the coordinates of the given element
            • Get the coordinates from the driver
            • Creates an opener
            • Create empty folder
            • Get baseline directory
            • Return output directory
            • Capture an element
            • Get the coordinates of a given element
            • Capture a mobile element
            • Generate the report
            • Generate HTML report
            • Make HTML table for non - web test
            • Parse the command line options
            • Get the name of the template test case
            • Start a WSGI server
            • Close the report
            • Find element by xpath
            • Find an element by class name
            • Finds element by id
            • Finds an element by css selector
            Get all kandi verified functions for this library.

            RobotEyes Key Features

            No Key Features are available at this moment for RobotEyes.

            RobotEyes Examples and Code Snippets

            Template Tests
            Pythondot img1Lines of Code : 22dot img1License : Permissive (MIT)
            copy iconCopy
            *** Settings ***
            Library  SeleniumLibrary
            Library  RobotEyes
            
            *** Test Cases ***
            Sample test
                [Template]   Sample keyword
                https://www.google.com/   0
                https://www.google.com/   1
                https://www.google.com/   2
            
            
            *** Keywords ***
            Sample key  
            Another test example
            Pythondot img2Lines of Code : 19dot img2License : Permissive (MIT)
            copy iconCopy
            *** Settings ***
            Library    SeleniumLibrary
            Library    RobotEyes
            
            *** Variables ***
            @{blur}    id=body    css=#SIvCob
            
            *** Test Cases ***    
            Sample visual regression test case  # Name of the example test case
                Open Browser    https://www.google.c  
            Comparing the images
            Pythondot img3Lines of Code : 14dot img3License : Permissive (MIT)
            copy iconCopy
            Library    RobotEyes
            
            *** Settings ***
            Library    SeleniumLibrary
            Library    RobotEyes
            
            *** Test Cases ***    
            Sample visual regression test case  # Name of the example test case
                Open Browser    https://www.google.com/    chrome
                Maximize Brow  

            Community Discussions

            QUESTION

            How do I get an image to move until it gets to a specific point in the window?
            Asked 2017-Nov-27 at 14:03

            Right now I have some code in Python using Zelle graphics that has a robot image and some text scrolling upward. When the user clicks on the window, the program ends.

            What I'm trying to do is have pieces of the robot image come in from opposite sides of the window (The head moving down from the top, the eyes moving up from the bottom, and the ears moving in from the left and right). They would stop moving once they come together to form the completed image.

            After that, I want the text to come in from the left hand side and stop once it gets to the center of the screen, underneath the image. I don't want the animation to start until the user clicks on the window.

            This is what my code looks like so far:

            ...

            ANSWER

            Answered 2017-Nov-27 at 14:03

            You can use robotHead.anchor.getY() and robotHead.anchor.getX() to check current position and move it only if it is not on expected position.

            You can also use variables with True/False to control which element has to move (or even which element to show on screen). At start you should have moveHead = Trueand moveLineOne = False. When head is on expected position then you can change moveHead = False and moveLineOne = True.

            BTW: graphics has function update(frames_per_second) to control speed of animation and you don't need sleep(). Besides update() executes some functions which graphics may need for correct work. (graphics documentation: Controlling Display Updates (Advanced))

            Speed 25-30 FPS is enough for human eye to see smooth animation (and it may uses less CPU power than 60 FPS).

            Simple example

            Source https://stackoverflow.com/questions/47445718

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install RobotEyes

            You can install using 'pip install RobotEyes' or download it from GitHub, PyPI.
            You can use RobotEyes like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            lib, tolerance, template_id, cleanup. Ex open eyes lib=AppiumLibrary tolerance=5 cleanup=all_passed. tolerance, blur, radius, name, redact. Ex capture full screen tolerance=5 name=homepage blur=<array of locators> radius=50(thickness of blur). locator, tolerance, blur, radius, name, redact. locator, tolerance, blur, radius, name, redact. Ex scroll to element id=user. Compares all the images captured in the test with their respective base image. first, second, output, tolerance. Compares two images captured in the above steps. Takes image names, diff file name and tolerance as arguments Ex: Compare Two Images img1 img2 diff 10.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link