Download the PHP package integratedexperts/behat-screenshot without Composer

On this page you can find all versions of the php package integratedexperts/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 screenshot logo

Behat Screenshot Extension

[![GitHub Issues](https://img.shields.io/github/issues/drevops/behat-screenshot.svg)](https://github.com/drevops/behat-screenshot/issues) [![GitHub Pull Requests](https://img.shields.io/github/issues-pr/drevops/behat-screenshot.svg)](https://github.com/drevops/behat-screenshot/pulls) [![CircleCI](https://circleci.com/gh/drevops/behat-screenshot.svg?style=shield)](https://circleci.com/gh/drevops/behat-screenshot) [![codecov](https://codecov.io/gh/drevops/behat-screenshot/graph/badge.svg?token=UN930S8FGC)](https://codecov.io/gh/drevops/behat-screenshot) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/drevops/behat-screenshot) ![LICENSE](https://img.shields.io/github/license/drevops/behat-screenshot) ![Renovate](https://img.shields.io/badge/renovate-enabled-green?logo=renovatebot) [![Total Downloads](https://poser.pugx.org/drevops/behat-screenshot/downloads)](https://packagist.org/packages/drevops/behat-screenshot)

Behat extension and step definitions to create HTML and image screenshots on demand or when tests fail.

Features

Installation

Usage

Example behat.yml with default parameters:

or with parameters:

In your feature:

You may optionally specify size of browser window in the screenshot step:

Options

Name Default value Description
dir %paths.base%/screenshots Path to directory to save screenshots. Directory structure will be created if the directory does not exist.
fail true Capture screenshots for failed tests.
fail_prefix failed_ Prefix failed screenshots with fail_ string. Useful to distinguish failed and intended screenshots.
purge false Remove all files from the screenshots directory on each test run. Useful during debugging of tests.
filenamePattern {datetime:u}.{feature_file}.feature_{step_line}.{ext} File name pattern for successful assertions.
filenamePatternFailed {datetime:u}.{fail_prefix}{feature_file}.feature_{step_line}.{ext} File name pattern for failed assertions.

Supported tokens

Token Substituted with Example value(s)
{ext} The extension of the file captured html or png
{fail_prefix} The value of fail_prefix from configuration failed_, error_ (do include the _ suffix, if required)
{url} Full URL http_example_com_mypath_subpath__query__myquery_1_plus_2_plus_3_and_another1_4__fragment__somefragment
{url_origin} Scheme with domain http_example_com
{url_relative} Path + query + fragment mypath_subpath__query__myquery_1_plus_2_plus_3_and_another1_4__fragment__somefragment
{url_domain} Domain example_com
{url_path} Path mypath_subpath
{url_query} Query myquery_1_plus_2_plus_3_and_another1_4
{url_fragment} Fragment somefragment
{feature_file} The filename of the .feature file currently being executed, without extension my_example.feature -> my_example
{step_line} Step line number 1, 10, 100
{step_line:%03d} Step line number with leading zeros. Modifiers are from sprintf(). 001, 010, 100
{step_name} Step name without Given/When/Then and lower-cased. i_am_on_the_test_page
{datetime} Current date and time. defaults to Ymd_His format. 20010310_171618
{datetime:U} Current date and time as microtime. Modifiers are from date(). 1697490961192498

Maintenance

Local development setup

Lint code

Lint fix

Run tests

Enable Xdebug

To disable, run


All versions of behat-screenshot with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
behat/behat Version ^3.13.0
friends-of-behat/mink-extension Version ^2.7
symfony/finder Version ^6.4 || ^7.0
symfony/http-client Version ^6.0 || ^7.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 integratedexperts/behat-screenshot contains the following files

Loading the files please wait ....