Skip to main content

A Robot Framework package to integrate with Beholder, the Zero Defect's Visual Regression Testing platform.

Project description

Robot Framework - BeholderLibrary

A Robot Framework's library to integrate with the Zero Defect's Visual Regression testing platform.

Installation

The recommended installation method is using pip:

pip install robotframework-beholderlibrary

Running this command installs also the latest SeleniumLibrary and Robot Framework versions, but you still need to install browser drivers separately. The --upgrade option can be omitted when installing the library for the first time.

With recent versions of pip it is possible to install directly from the GitHub_ repository. To install latest source from the master branch, use this command:

pip install git+https://github.com/zerodefect-testhouse/robotframework-BeholderLibrary.git

Please note that installation will take some time, because pip will clone the BeholderLibrary project to a temporary directory and then perform the installation.

Usage

To use BeholderLibrary in Robot Framework tests, the library needs to first be imported using the Library setting as any other library.

    *** Settings ***
    Documentation     Simple example using BeholderLibrary.
    Library           SeleniumLibrary
    Library           BeholderLibrary

    *** Variables ***
    ${URL}      http://localhost:8000
    ${BROWSER}        Chrome

    *** Test Cases ***
    Verify HomePage
        Open Browser to HomePage
        Welcome Page Should Be Correctly Displayed
        [Teardown]    Close Browser

    *** Keywords ***
    Open Browser to HomePage
        Open Browser    ${URL}    ${BROWSER}
        Title Should Be    Login Page


    Input Password
        [Arguments]    ${password}
        Input Text    password_field    ${password}

    Submit Credentials
        Click Button    login_button

    Welcome Page Should Be Correctly Displayed
        Take Beholder Snapshot 

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

robotframework-beholderlibrary-0.1.0.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

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