fonsecas72/behat-giffy-extension

Takes screenshots for every browser interaction made

Installs: 42 601

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 4

Forks: 1

Open Issues: 0

Type:behat-extension

1.0.4 2016-08-01 15:59 UTC

This package is not auto-updated.

Last update: 2024-11-23 20:04:32 UTC


README

Behat extension that generates an animated gif with the complete interaction of tagged scenarios

This extension adds a driver that will allow you to create a animated GIF based on saved screenshots for each interaction with the browser.

Enable it by adding it to your session group and by adding a @giffy tag to your feature/scenario.

You can also use as your default session (javascript maybe) but be aware that it will slow down your tests.

It works on top of selenium2

##How to use

Add it as composer dependency

composer require fonsecas72/behat-giffy-extension

Update you behat.yml

default:
    extensions:
        Fonsecas72\GiffyExtension:
            screenshot_path: build/gifs
            use_scenario_folder: true
        Behat\MinkExtension:
            base_url:             http://link.php
            files_path:           'features'
            browser_name:         firefox
            default_session:      selenium2
            javascript_session:   selenium2
            sessions:
                selenium2:
                    selenium2: ~
                giffy:
                    giffy: ~
giffy:
    extensions:
            Behat\MinkExtension:
                default_session:      giffy
                javascript_session:   giffy

Then you could do:

behat -p giffy

Or you can append the @giffy tag to your feature/scenario.