/robotframework-VRTLibrary

VRT is a library for integrating Visual Regression Tracker with Robot Framework. For information about Visual Regression Tracker please visit the project page.

Primary LanguagePythonApache License 2.0Apache-2.0

VRT

VRT is a library for integrating Visual Regression Tracker with Robot Framework. For information about Visual Regression Tracker please visit the project page.

Prerequisites

  • Visual Regression Tracker

##Installation

The package is stored in PyPI . To install package execute command:

pip install VRT

##Importing

To import library use below command:

Library VRT

##Configure connection

Connection with Visual Regression Tracker should be configured using environment variables:

Example:

VRT_APIURL= http://localhost:4200     #URL where backend is running
VRT_PROJECT= Default project          #Project name or ID
VRT_APIKEY= YourAPIKey                #User apiKey
VRT_CIBUILDID= $CI_COMMIT_SHA         #Current git commit SHA
VRT_BRANCHNAME= $CI_COMMIT_REF_NAME   #Current git branch
VRT_ENABLESOFTASSERT= "false"         #Log errors instead of exceptions

For local use and test debugging vrt.json file can be used. The file should be placed in the project root.

*vrt.json*

{
"apiUrl":"http://localhost:4200",
"project":"Default project",
"apiKey":"YourAPIKey",
"ciBuildId":"commit_sha",
"branchName":"develop",
"enableSoftAssert":false
}