Skip to main content

Visual verification testing library for Robot Framework using Applitool python SDK eye-selenium

Project description

EyesLibraryExtended for Robot Framework

Table of Contents

Introduction

EyesLibraryExtended is a Robot Framework Library to automate visual software testing verification. EyesLibraryExtended uses a Python SDK called Eyes-Selenium from the tool Applitools Eyes, and can be used with the SeleniumLibrary and/or the AppiumLibrary .

This library is a fork of EyesLibrary (https://github.com/joel-oliveira/EyesLibrary) which again is a fork of Robot-AppEyes.

In order to use EyesLibraryExtended, you are required to sign up for a free account with Applitools. See the Usage section.

Requirements

The following versions were used to test the library:

  • Python 2.7.14 or 3.7.0
  • Robot Framework 3.1.1
  • Eyes-Selenium 4.17.1
  • SeleniumLibrary 3.3.1 (For Web Tests)
  • AppiumLibrary 1.5.0.3 (For Mobile Tests)

Installation

The recommended installation method is using pip:

pip install robotframework-eyeslibraryextended

To update both the library and all its dependencies to the latest version:

pip install --upgrade robotframework-eyeslibraryextended

To install a specific version:

pip install robotframework-eyeslibraryextended==(DesiredVersion)

Uninstall

To uninstall EyesLibraryExtended use the following pip command:

pip uninstall robotframework-eyeslibraryextended

Directory Layout

EyesLibraryExtended/

  The Robot Framework Python Library that makes use of the Applitools Eyes Python SDK

tests/acceptance/

  Test files to display what the keywords from EyesLibraryExtended accomplish

docs/

  Documentation for the EyesLibraryExtended: Keyword Documentation and ChangeLog

Usage

You must create a free account with Applitools in order to run EyesLibraryExtended and return results.

Then, to use the library, follow EyesLibraryExtended Keyword Documentation.

This is a Robot Framework library. If you're not familiarized with Robot Framework, please consult Robot Framework User Guide.

Running the Demo

At tests/acceptance directory, you can find Robot Framework tests for:

  • Web
  • Android Browser
  • Android Native App
  • Android Hybrid App
  • iOS Browser
  • iOS Native App
  • iOS Hybrid App

Before running the tests, your Applitools API Key must be set in tests/acceptance/resources/common.robot, by replacing "YourApplitoolsApiKey" with your own key.

When running the mobile tests, you must replace the variables within tests/acceptance/resources/mobile.robot with your own, as well as the ones in tests/acceptance/resources/android.robot or tests/acceptance/resources/ios.robot, according to the OS in use.

For instance, you may want to use a different Remote URL than the one provided in the variables. So, if you are working with TestingBot, for example, you'd have to replace the Remote URL variable in tests/acceptance/resources/mobile.robot:

${REMOTE URL}          http://${CREDENTIALS}@hub.testingbot.com/wd/hub

Before running the Android Hybrid App tests, you need to install the Demo App (APK found at tests/resources) in your device.

For in depth detail on how the keywords function, read the Keyword documentation found here: Keyword Documentation

Remember to include your Applitools API key otherwise the test will not run. To run a test, open a command prompt within the tests/acceptance folder and run:

robot FILENAME.robot

For example, to run the Test Suite for Web:

robot web.robot

Note: It is assumed that anyone who wants to use this demo is already able to execute robot tests using SeleniumLibrary (for web tests) and/or AppiumLibrary (for mobile tests). The browser used to navigate with SeleniumLibrary is Google Chrome.

Things to Note When Using Applitools

  • The tests will be accepted automatically by Applitools Eyes after the first run because a new baseline is being created. A second test run will show a comparison between screens.
  • Changing the Applitools baseline parameters will create a new baseline, that is automatically accepted on the first run. (For more information, read the article: What is a ‘baseline’ and how is a baseline created?
  • The viewport size should not be set to greater values than the maximum size of the device's window. (For more information on using viewports, consult Using viewports in Eyes)

Getting Help

To be defined. It might be helpful to read Applitools Documentation.

Credits

EyesLibraryExtended was forked from EyesLibrary (https://github.com/joel-oliveira/EyesLibrary) on version 2.1 ,which again is a fork of Robot-AppEyes on version 1.2.

EyesLibrary authors:

Robot-AppEyes authors:

EyesLibraryExtended then emerged as an independent library from the original one, on version 4.0.

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-eyeslibraryextended-4.1.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file robotframework-eyeslibraryextended-4.1.tar.gz.

File metadata

  • Download URL: robotframework-eyeslibraryextended-4.1.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

File hashes

Hashes for robotframework-eyeslibraryextended-4.1.tar.gz
Algorithm Hash digest
SHA256 768eb0888b197db1e61fe2c6a9c0c7fad816bbeeaa735d9d066ba18e8c649f74
MD5 f5e8b4a7d1d1a25ba8efcda2e983fe94
BLAKE2b-256 b301a5262eb0c292c35189a68625602313747be6c464c7fc48eec66e7cfeb825

See more details on using hashes here.

File details

Details for the file robotframework_eyeslibraryextended-4.1-py3-none-any.whl.

File metadata

  • Download URL: robotframework_eyeslibraryextended-4.1-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

File hashes

Hashes for robotframework_eyeslibraryextended-4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59a10322da19ce9e43f2a921a9d1a212389df23b67c282d90b73283f17c639c9
MD5 72eee5982c87629803450da4281a50bb
BLAKE2b-256 3e297e3ebe5b788deacf8f064f6f8e5d121c7fc8aa8501f20a4b21c904ab6816

See more details on using hashes here.

Supported by

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