lingoda/behat-screenshot-image-driver-aws-s3 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Composer 安装命令:

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

包简介

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

README 文档

README

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

统计信息

  • 总下载量: 99.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固