Skip to main content

Open source, self hosted solution for visual testing and managing results of visual testing.

Project description

Python SDK for Visual Regression Tracker

Codacy Badge Codacy Badge

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

visual_regression_tracker-4.2.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

visual_regression_tracker-4.2.0-py2.py3-none-any.whl (9.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file visual_regression_tracker-4.2.0.tar.gz.

File metadata

  • Download URL: visual_regression_tracker-4.2.0.tar.gz
  • Upload date:
  • Size: 8.1 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

Hashes for visual_regression_tracker-4.2.0.tar.gz
Algorithm Hash digest
SHA256 af56350af5b01fd83dddceded78fff1e0a934dfe918540cdaecf694005970eca
MD5 e95d65eae4bc45cea2e274703f0b7853
BLAKE2b-256 db386442c9a8305e4a36cd6c44717ab8a99a7717619c53ec71ec58a51d07dff7

See more details on using hashes here.

Provenance

File details

Details for the file visual_regression_tracker-4.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: visual_regression_tracker-4.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 2, 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

Hashes for visual_regression_tracker-4.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 003aa4ea8feaf50b28023c2b0b72d499b705960cff97f96473446ec9f6eedb7d
MD5 245d237e140491a8762b38af4ce087c9
BLAKE2b-256 77a5f228960cccf7cda0be573cbf95517c7f831d1bf4a7e4c49f6d6bc37a7b25

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page