Download the PHP package bex/behat-screenshot without Composer

On this page you can find all versions of the php package bex/behat-screenshot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package behat-screenshot

Behat-ScreenshotExtension

License Latest Stable Version Scrutinizer Code Quality Build Status Build Status

Behat-ScreenshotExtension helps you debug Behat scenarios by taking screenshot of the failing steps.

By default the extension takes the screenshot and save it to the preconfigured directory (by default it will save the image to the default temporary system directory).

Also the extension allows you to specify an image driver which can upload the image to a host, in this case you will see the image url in the terminal right after the failing step. See available image drivers below.

You can also create your own image driver easily, for more information see this section.

Installation

Install by adding to your composer.json:

Configuration

Enable the extension in behat.yml like this:

You can configure the screenshot directory like this:

If you are using another image driver you can enable it like this:

You can even enable more than one image driver at once:

You can make a combined screenshot including previous steps:

You can disable the extension by removing from the behat.yml or you can disable it for a profile by using the enabled parameter, e.g.:

Usage

When you run behat and a step fails then the extension will automatically take the screenshot and you will see the filepath or the image URL of the screenshot (based on the configured image driver). So you will see something like this:

Available Image Drivers

How to create your own image driver

  1. Implement the Bex\Behat\ScreenshotExtension\Driver\ImageDriverInterface
  2. Put your class under the Bex\Behat\ScreenshotExtension\Driver namespace

That's it!

See example here: https://github.com/tkotosz/behat-screenshot-image-driver-dummy


All versions of behat-screenshot with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
behat/behat Version ^3.0.0
behat/mink-extension Version ^2.0.0
bex/behat-extension-driver-locator Version ^1.0|^2.0
symfony/filesystem Version ^2.7|^3.0|^4.0|^5.0
symfony/finder Version ^2.7|^3.0|^4.0|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bex/behat-screenshot contains the following files

Loading the files please wait ....