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.3.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

visual_regression_tracker-4.3.0-py2.py3-none-any.whl (9.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: visual_regression_tracker-4.3.0.tar.gz
  • Upload date:
  • Size: 8.2 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.3.0.tar.gz
Algorithm Hash digest
SHA256 21f2fd189b8d090056da02f4b252fd0fd67bcec51a48543594e23cfde4efddd0
MD5 38d582bc2372147cd9feaa773cd5e798
BLAKE2b-256 5995106723e1189e656f154d303e21057cca6471426cdecf67a3db0927192985

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: visual_regression_tracker-4.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2da1da607b2e92a744b9aa93d73002aabab17e8f52af93ff61fd32df5084fe27
MD5 e9b2efe9168044330ca5734b6824095f
BLAKE2b-256 0bd01e13d031e25c1bcbf666a66bc6e8567720f42f8d62801380d30330163181

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