2017 © Pedro Peláez
 

symfony-bundle voyeur-bundle

A voyeur, but this one is decent enough.

image

namshi/voyeur-bundle

A voyeur, but this one is decent enough.

  • Tuesday, March 12, 2013
  • by odino
  • Repository
  • 6 Watchers
  • 28 Stars
  • 143 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

NAMSHI | VoyeurBundle

This bundle is made to ease testing and comparing frontend changes in your applications., (*1)

With it, you can first take screenshots of your webpages and then compare them., (*2)

A common scenario is to check differences between one particular version of your application and another one (for example, master and develop)., (*3)

Voyeur

In order to start taking screenshots, you will just need to configure services and parameters:, (*4)

``` yml parameters: namshi_voyeur: browsers: - firefox - safari - chrome urls: homepage: "/" new-arrivals: "mail" shots_dir: "/Users/xx/Downloads/screenshots" base_url: "http://google.com/", (*5)


You will have to tell the bundle with which browsers you want to take screenshots, at which URLs, a base URL and a directory where the screenshots will be saved. Then, configure the services: ```yml services: safari: class: Behat\Mink\Driver\Selenium2Driver calls: - [start] arguments: browser: safari firefox: class: Behat\Mink\Driver\Selenium2Driver calls: - [start] chrome: class: Behat\Mink\Driver\Selenium2Driver calls: - [start] arguments: browser: chrome

which are basically instances of the Selenium2 driver, which will be used by Voyeur., (*6)

Last step is to launch Voyeur from the command line:, (*7)

php app/console namshi:voyeur

Voyeur:diff

To generate the diffs between different screenshots captured by Voyeur, just trigger the command:, (*8)

php app/console namshi:voyeur:diff path/to/first/screenshots path/to/other/screenshots

You can also specify the path to save the diffs at:, (*9)

--diff-dir=path/to/diffs

otherwise they will be saved at path/to/other/screenshots., (*10)

Testing different websites

You can optionally specify different configurations:, (*11)

``` yml parameters: namshi_voyeur: browsers: - firefox urls: homepage: "/" new-arrivals: "mail" shots_dir: "/Users/xx/Downloads/screenshots" base_url: "http://google.com/" voyeur_ae: base_url: "http://google.ae/" voyeur_de: base_url: "http://google.de/" voyeur_it: base_url: "http://google.it/", (*12)

and then run Voyeur with the specified configuration:

``` bash
php app/console namshi:voyeur --config=voyeur_de

The example above will run Voyeur on google.de, instead of .com., (*13)

The Versions

12/03 2013

dev-develop

dev-develop

A voyeur, but this one is decent enough.

  Sources   Download

MIT

The Requires

 

symfony2 behat mink screenshot

11/03 2013

dev-master

9999999-dev

A voyeur, but this one is decent enough.

  Sources   Download

MIT

The Requires

 

symfony2 behat mink screenshot

11/03 2013

1.0.0

1.0.0.0

A voyeur, but this one is decent enough.

  Sources   Download

MIT

The Requires

 

symfony2 behat mink screenshot