{"id":22426392,"url":"https://github.com/robertfausk/behat-screenshot-image-driver-url","last_synced_at":"2025-08-23T19:09:32.728Z","repository":{"id":62536481,"uuid":"251143533","full_name":"robertfausk/behat-screenshot-image-driver-url","owner":"robertfausk","description":"This package is an image driver for the bex/behat-screenshot behat extension which can upload the screenshot to local web server dir and print the url of the uploaded image.","archived":false,"fork":false,"pushed_at":"2020-12-13T16:23:19.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T11:26:03.402Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertfausk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-29T22:00:41.000Z","updated_at":"2020-12-13T16:23:21.000Z","dependencies_parsed_at":"2022-11-02T15:15:24.526Z","dependency_job_id":null,"html_url":"https://github.com/robertfausk/behat-screenshot-image-driver-url","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertfausk%2Fbehat-screenshot-image-driver-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertfausk%2Fbehat-screenshot-image-driver-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertfausk%2Fbehat-screenshot-image-driver-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertfausk%2Fbehat-screenshot-image-driver-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertfausk","download_url":"https://codeload.github.com/robertfausk/behat-screenshot-image-driver-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791956,"owners_count":20672671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T19:18:13.162Z","updated_at":"2025-03-27T06:18:00.342Z","avatar_url":"https://github.com/robertfausk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ImageDriver-URL for Behat-ScreenshotExtension\n\n[![Latest Stable Version](https://poser.pugx.org/robertfausk/mink-panther-driver/v/stable.svg)](https://packagist.org/packages/robertfausk/behat-screenshot-image-driver-url)\n[![Latest Unstable Version](https://poser.pugx.org/robertfausk/behat-screenshot-image-driver-url/v/unstable.svg)](https://packagist.org/packages/robertfausk/behat-screenshot-image-driver-url)\n[![Total Downloads](https://poser.pugx.org/robertfausk/behat-screenshot-image-driver-url/downloads.svg)](https://packagist.org/packages/robertfausk/behat-screenshot-image-driver-url)\n[![License](https://poser.pugx.org/robertfausk/behat-screenshot-image-driver-url/license.svg)](https://packagist.org/packages/robertfausk/behat-screenshot-image-driver-url)\n[![Build Status](https://travis-ci.org/robertfausk/behat-screenshot-image-driver-url.svg?branch=master)](https://travis-ci.org/robertfausk/behat-screenshot-image-driver-url)\n[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/robertfausk/behat-screenshot-image-driver-url/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/robertfausk/behat-screenshot-image-driver-url/)\n[![Code Coverage](https://scrutinizer-ci.com/g/robertfausk/behat-screenshot-image-driver-url/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/robertfausk/behat-screenshot-image-driver-url/)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n![PHP7 Compatible](https://img.shields.io/travis/php-v/robertfausk/behat-screenshot-image-driver-url/master?style=flat-square)\n[![Open Issues](https://img.shields.io/github/issues-raw/robertfausk/behat-screenshot-image-driver-url?style=flat-square)](https://github.com/robertfausk/behat-screenshot-image-driver-url/issues)\n[![Closed Issues](https://img.shields.io/github/issues-closed-raw/robertfausk/behat-screenshot-image-driver-url?style=flat-square)](https://github.com/robertfausk/behat-screenshot-image-driver-url/issues?q=is%3Aissue+is%3Aclosed)\n[![Contributors](https://img.shields.io/github/contributors/robertfausk/behat-screenshot-image-driver-url?style=flat-square)](https://github.com/robertfausk/behat-screenshot-image-driver-url/graphs/contributors)\n![Contributors](https://img.shields.io/maintenance/yes/2020?style=flat-square)\n\n\nThis package is an image driver for the [bex/behat-screenshot](https://github.com/elvetemedve/behat-screenshot) behat extension which can upload the screenshot to local web server dir and print the url of the uploaded image.\nIf you are in a docker like environment then this extension provide the url in log output. \n\n## Installation\n\n\nInstall by adding to your `composer.json`:\n\n```bash\ncomposer require --dev robertfausk/behat-screenshot-image-driver-url\n```\n\n## Configuration\n\nEnable the image driver in the Behat-ScreenshotExtension's config in `behat.yml`:\n\n```yml\ndefault:\n  extensions:\n    Bex\\Behat\\ScreenshotExtension:\n      active_image_drivers: url\n```\n\nYou have to choose where to upload files and the web address:\n\n```yml\ndefault:\n    extensions:\n        Bex\\Behat\\ScreenshotExtension:\n            active_image_drivers: url\n            image_drivers:\n                url:\n                    screenshot_directory: /var/www/html/public/screenshots # your local web server dir where the image gets saved\n                    screenshot_url: https://acme/screenshots # used for creation of web url; could also be something like https://localhost:9000/screenshots\n                    # you can use something similar in your ci:\n                    # screenshot_url: https://acme.test.my-company.com/screenshots\n                    \n```\n\n## Usage\n\nWhen a step fails a screenshot will be taken and put into web server directory. URL of the uploaded image will be displayed in the Behat log.\nSo you can open it directly from log output:\n\n```bash\n  Scenario:                           # features/feature.feature:2\n    Given I have a step               # FeatureContext::passingStep()\n    When I have a failing step        # FeatureContext::failingStep()\n      Error (Exception)\nScreenshot has been taken. Open image at /var/www/html/public/screenshots/IMAGE_LINK.png or https://acme/screenshots/IMAGE_LINK.png\n    Then I should have a skipped step # FeatureContext::skippedStep()\n```\n\n![console output example of behat screenshot image driver url](doc/images/console_output.png)\n\n\n### How to upgrade?\n\nHave a look at [CHANGELOG](CHANGELOG.md) for detailed information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertfausk%2Fbehat-screenshot-image-driver-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertfausk%2Fbehat-screenshot-image-driver-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertfausk%2Fbehat-screenshot-image-driver-url/lists"}