2017 © Pedro Peláez
 

library behat-screenshot-image-driver-aws-s3

AWS S3 image driver for bex/behat-screenshot behat extension

image

lingoda/behat-screenshot-image-driver-aws-s3

AWS S3 image driver for bex/behat-screenshot behat extension

  • Wednesday, January 11, 2017
  • by artursvonda
  • Repository
  • 3 Watchers
  • 3 Stars
  • 40,548 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

S3 image driver for Behat-ScreenshotExtension

Scrutinizer Code Quality Build Status Build Status, (*1)

This package is an image driver for the bex/behat-screenshot behat extension which uploads to S3., (*2)

Installation

Install by adding to your composer.json:, (*3)

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:, (*4)

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:, (*5)

  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()

The Versions

11/01 2017

dev-master

9999999-dev https://github.com/lingoda/behat-screenshot-image-driver-aws-s3

AWS S3 image driver for bex/behat-screenshot behat extension

  Sources   Download

MIT

The Requires

 

The Development Requires

bdd tdd s3 aws behat behat-screenshot

11/01 2017
11/01 2017
10/01 2017
10/01 2017