Coder Social home page Coder Social logo

emanueleminotto / behat-screenshot-image-driver-aws-s3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lingoda/behat-screenshot-image-driver-aws-s3

0.0 3.0 0.0 13 KB

AWS S3 driver for Behat screenshot extension

License: MIT License

PHP 75.10% Gherkin 24.90%

behat-screenshot-image-driver-aws-s3's Introduction

S3 image driver for Behat-ScreenshotExtension

Scrutinizer Code Quality Build Status Build Status

This package is an image driver for the bex/behat-screenshot behat extension which uploads to S3.

Installation

Install by adding to your composer.json:

composer require --dev lingoda/behat-screenshot-image-driver-aws-s3

Configuration

Enable the image driver in the Behat-ScreenshotExtension's config in behat.yml like this:

default:
  extensions:
    Bex\Behat\ScreenshotExtension:
      active_image_drivers: aws_s3
      image_drivers:
        aws_s3:
          bucket: BUCKET # Required
          region: REGION # Required
          version: latest # Default
          credentials_key: AWS_S3_KEY # Optional
          credentials_secret: AWS_S3_SECRET # Optional
          credentials_token: AWS_S3_TOKEN # Optional
          timeout: 30 # Optional, number of minutes the screenshot will be available when private
          visibility: public-read # Optional, can be only public-read or private

Usage

When you run behat and a step fails then the Behat-ScreenshotExtension will automatically take the screenshot and will pass it to the image driver, which will return the S3 image url. So you will see something like this:

  Scenario:                           # features/feature.feature:2
    Given I have a step               # FeatureContext::passingStep()
    When I have a failing step        # FeatureContext::failingStep()
      Error (Exception)
Screenshot has been taken. Open image at http://us-west-1.aws.com/....
    Then I should have a skipped step # FeatureContext::skippedStep()

behat-screenshot-image-driver-aws-s3's People

Contributors

artursvonda avatar emanueleminotto avatar

Watchers

 avatar  avatar  avatar

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.