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',
)

vrt = VisualRegressionTracker(config)

Send image

vrt.track(TestRun(
    # Name to be displayed
    # Required
    name='Image name',

    # Base64 encoded string
    # Required
    imageBase64=image,

    # Allowed mismatch tollerance in %
    # Optional
    # Default: 1%
    diffTollerancePercent=0,

    # 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-0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

visual_regression_tracker-0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: visual_regression_tracker-0.1.tar.gz
  • Upload date:
  • Size: 3.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.1 requests-toolbelt/0.9.1 tqdm/4.48.1 CPython/3.8.3

File hashes

Hashes for visual_regression_tracker-0.1.tar.gz
Algorithm Hash digest
SHA256 a7093bc4daaf973df11f9baef3d38153bbfba60d0420041687128c6182e33177
MD5 469705fe612eb47944664a448b8f28f8
BLAKE2b-256 ac69b306d9931de688c0d285280679741b5d666215dd9071c0fe4d83113667cc

See more details on using hashes here.

Provenance

File details

Details for the file visual_regression_tracker-0.1-py3-none-any.whl.

File metadata

  • Download URL: visual_regression_tracker-0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.1 requests-toolbelt/0.9.1 tqdm/4.48.1 CPython/3.8.3

File hashes

Hashes for visual_regression_tracker-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 237a887abf7d3bd5cce9a0a112f11d63b6dd4333be39b8409bb1086b17013cc9
MD5 26d20991ec6773eb642ad9767fb781c3
BLAKE2b-256 c11fa71d3e60fdf5fdf945111fff12e8f6251f4a884d3560b7b7f60272d06231

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