Git Product home page Git Product logo

wdio-screenshot-uploader-service's Introduction

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.

wdio-screenshot-uploader-service's People

Contributors

dimitriharding avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

fossabot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.