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',
)
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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9302933b7c018678bf1554c5e55da1485fef69dbfb4009cfce82f7ca2e6f2a35 |
|
MD5 | 29dde96033d967302a93008dcf8d2994 |
|
BLAKE2b-256 | 85053325cefdfd10c4369a1f49ea2e4a206e1ea7627ddaf498d7eb21586022cb |
Close
Hashes for visual_regression_tracker-4.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7ed2ea6adbdb5fac1c5cd8382c6bf4543b155fcf2aba304349a47c8cd68c48e |
|
MD5 | 8d7d74e3b02b2381a24cc22d6e63e8cc |
|
BLAKE2b-256 | af3e67ade179ab8a2883b04b4bb0b97468df62bcc467e37846faa1e794ce2a88 |