Download the PHP package codeception/visualception without Composer

On this page you can find all versions of the php package codeception/visualception. 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 visualception

VisualCeption

Visual regression tests for Codeception.

Build Status

This module can be used to compare the current representation of a website element with an expected. It was written on the shoulders of codeception and integrates in a very easy way.

WARNING This module can reduce the execution speed of acceptance tests. Use it only for visual regression test suite and not for regular end to end testing.

Example

How it works

VisualCeption uses a combination of the "make a screenshot" feature in webdriver, imagick and native JavaScript to compare visual elements on a website. This comparison is done in five steps:

  1. Take a screenshot of the full page using webdriver.
  2. Calculate the position and size of the selected element using JavaScript.
  3. Crop the element out of the full screenshot using imagick.
  4. Compare the element with an older version of the screenshot that has been proofed as valid using imagick. If no previous image exists the current image will be used fur future comparions. As an effect of this approach the test has to be run twice before it works.
  5. If the deviation is too high throw an exception that is caught by Codeception.

Requirements

VisualCeption needs the following components to run:

Installation

Make sure you have php-imagick extension installed. Run php -m to see if imagick extension is enabled.

Then add VisualCeption to composer.json:

Configuration

To use the VisualCeption module you have to configure it.

Example Configuration

Usage

VisualCeption is really easy to use. There are only two methods that will be added to $I seeVisualChanges and dontSeeVisualChanges.

Example Usage

If you need more information about the test run please use the command line debug option (-d or --debug).

HTML Reports

Enable Reports in config and use nice HTML output to see all failed visual tests with their image diffs on a page:

Restriction

VisualCeption uses the WebDriver module for making the screenshots. As a consequence we are not able to take screenshots via google chrome as the chromedriver does not allow full page screenshots.

Run tests with Docker


All versions of visualception with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-imagick Version *
ext-mbstring Version *
ext-zip Version *
ext-xml Version *
codeception/codeception Version ^5.0
codeception/module-webdriver Version ^3.2
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 codeception/visualception contains the following files

Loading the files please wait ....