wdio-syngrisi-cucumber-service

2.2.4 • Public • Published

WDIO Syngrisi Cucumber Service

The service helps integrate WebdriverIO test framework and Syngrisi visual testing tool.

Installation

npm i wdio-syngrisi-cucumber-service

Configuration

In order to use the service with WebdriverIO test runner add these settings to services array:

// wdio.conf.js
export.config = {
    // ...
    services: [
        ['syngrisi-cucumber',
            {
                // syngrisi server endpoint
                endpoint: `http://localhost:3000/`,
                // syngrisi API key
                apikey: process.env['SYNGRISI_API_KEY'] || '',
                // project name
                project: 'My Project',
                // the tested branch
                branch: 'master',
                // run name (will be auto generated if not present)
                runname: process.env['RUN_NAME'],
                // run name (will be auto generated if not present)
                runident: process.env['RUN_IDENT'],
                // tag for visual regression scenarios
                // for all scenarios with this tag the service will create session on syngrisi
                // if tag is empty the visual session will be created for all scenarios
                // tag: '@visual',
                // the scenarios with `excludeTag` tag will be skipped 
                // excludeTag: '@novisual'
            }
        ],
    ],
    // ...
};

Usage

After all the preparations, you can use the browser.syngrisiCheck(checkName, imageBuffer) method in which:

  • checkName - the name of the check in Syngrisi
  • imageBuffer - the screenshot image buffer

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.2.4
    1
    • latest

Version History

Package Sidebar

Install

npm i wdio-syngrisi-cucumber-service

Weekly Downloads

61

Version

2.2.4

License

MIT

Unpacked Size

36.4 kB

Total Files

11

Last publish

Collaborators

  • svp1105714