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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b25d53d142b96fbe2e4a943de685953c801127c08322ea027a8f84f858600638 |
|
MD5 | 19c6cfae6ebb5c3e56e1bedbf420481c |
|
BLAKE2b-256 | d8e8754b1839b25f5204ebb078a29b9f49827c4dbb7c96308ebdc6e4141cec2e |
Close
Hashes for visual_regression_tracker-4.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20716e5d8041cf3ff3cd4bbd251180ab9bcf3e2a2c1b7aed42acd0f3a674345a |
|
MD5 | f11da7926f6e0438a996c9c0ca524058 |
|
BLAKE2b-256 | 9a1578f73f19b2b91b5c8057a233d51398b10fef90c217820bac25c5af599dbc |