Skip to content

A WebdriverIO service for uploading screenshots to online storages.

Notifications You must be signed in to change notification settings

dimitriharding/wdio-screenshot-uploader-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WDIO Screenshot Uploader Service

A WebdriverIO service for uploading screenshots to online storages

Installation

npm install wdio-screenshot-uploader-service --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

In order to use the service you need to set screenshotUploaderOptions in your wdio.conf.js file. It will automatically upload all screenshots to each storage has the correct options.

// wdio.conf.js
export.config = {
  // ...
  services: ['screenshot-uploader'],
  screenshotUploaderOptions: {
      storages: ["amazon-s3"]
      storagesInfo: {
          "amazon-s3": {
              accessKeyId: 'topSeCretMa738',
              secretAccessKey: 'ThisAsWell&eeieyern',
              bucket: 'screenshot',
              ACL: 'public-read', //optional
              path: 'errorshots' , //optional
          }
      }
  }
  // ...
};

Options

Param Type Default Description
screenshotUploaderOptions Object wdio.config.screenshotUploaderOptions
[screenshotUploaderOptions.screenshotPath] String wdio.config.screenshotPath Path of screenshots
screenshotUploaderOptions.storages Array List of storage services to use e.g. ["amazon-s3","google-cloud"]
screenshotUploaderOptions.storagesInfo Object Credentials and additional information for each service
[screenshotUploaderOptions.clean] Boolean true Whether or not to remove files from dir on initialization

Tests

npm test

Additional Info

For more information on WebdriverIO see the homepage.

About

A WebdriverIO service for uploading screenshots to online storages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published