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
File details
Details for the file visual_regression_tracker-4.0.0.tar.gz
.
File metadata
- Download URL: visual_regression_tracker-4.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9302933b7c018678bf1554c5e55da1485fef69dbfb4009cfce82f7ca2e6f2a35 |
|
MD5 | 29dde96033d967302a93008dcf8d2994 |
|
BLAKE2b-256 | 85053325cefdfd10c4369a1f49ea2e4a206e1ea7627ddaf498d7eb21586022cb |
Provenance
File details
Details for the file visual_regression_tracker-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: visual_regression_tracker-4.0.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7ed2ea6adbdb5fac1c5cd8382c6bf4543b155fcf2aba304349a47c8cd68c48e |
|
MD5 | 8d7d74e3b02b2381a24cc22d6e63e8cc |
|
BLAKE2b-256 | af3e67ade179ab8a2883b04b4bb0b97468df62bcc467e37846faa1e794ce2a88 |