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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af56350af5b01fd83dddceded78fff1e0a934dfe918540cdaecf694005970eca |
|
MD5 | e95d65eae4bc45cea2e274703f0b7853 |
|
BLAKE2b-256 | db386442c9a8305e4a36cd6c44717ab8a99a7717619c53ec71ec58a51d07dff7 |
Close
Hashes for visual_regression_tracker-4.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 003aa4ea8feaf50b28023c2b0b72d499b705960cff97f96473446ec9f6eedb7d |
|
MD5 | 245d237e140491a8762b38af4ce087c9 |
|
BLAKE2b-256 | 77a5f228960cccf7cda0be573cbf95517c7f831d1bf4a7e4c49f6d6bc37a7b25 |