Open source, self hosted solution for visual testing and managing results of visual testing.
Project description
Python SDK for Visual Regression Tracker
Install
pip install visual_regression_tracker
Usage
Import
from visual_regression_tracker import VisualRegressionTracker, Config, TestRun
Configure connection
config = Config(
# apiUrl - URL where backend is running
apiUrl='http://localhost:4200',
# project - Project name or ID
project='Default project',
# apiKey - User apiKey
apiKey='tXZVHX0EA4YQM1MGDD',
# branch - Current git branch
branchName='develop',
# enableSoftAssert - Log errors instead of exceptions
enableSoftAssert=False,
)
vrt = VisualRegressionTracker(config)
Setup / Teardown
As context manager:
with vrt:
...
# track test runs
...
Without context manager:
vrt.start()
...
# track test runs
...
vrt.stop()
Assert
vrt.track(TestRun(
# Name to be displayed
# Required
name='Image name',
# Base64 encoded string
# Required
imageBase64=image,
# Allowed mismatch tollerance in %
# Optional
# Default: 0%
diffTollerancePercent=1,
# Optional
os='Mac',
# Optional
browser='Chrome',
# Optional
viewport='800x600',
# Optional
device='PC',
))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for visual_regression_tracker-4.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f2fd189b8d090056da02f4b252fd0fd67bcec51a48543594e23cfde4efddd0 |
|
MD5 | 38d582bc2372147cd9feaa773cd5e798 |
|
BLAKE2b-256 | 5995106723e1189e656f154d303e21057cca6471426cdecf67a3db0927192985 |
Close
Hashes for visual_regression_tracker-4.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da1da607b2e92a744b9aa93d73002aabab17e8f52af93ff61fd32df5084fe27 |
|
MD5 | e9b2efe9168044330ca5734b6824095f |
|
BLAKE2b-256 | 0bd01e13d031e25c1bcbf666a66bc6e8567720f42f8d62801380d30330163181 |