{"id":15020910,"url":"https://github.com/yev/seleniummvnscreenshot","last_synced_at":"2025-10-26T16:30:48.139Z","repository":{"id":33562213,"uuid":"37208458","full_name":"yev/seleniumMvnScreenshot","owner":"yev","description":"Allow your selenium suites to store automatically the screenshots taken for every failed test in maven target folder","archived":false,"fork":false,"pushed_at":"2021-10-18T17:43:27.000Z","size":437,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-31T21:11:28.274Z","etag":null,"topics":["java","jenkins","maven","screenshot","selenium"],"latest_commit_sha":null,"homepage":"http://yevgen-fr.blogspot.fr/2015/06/selenium-screenshot-with-testng-and.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yev.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-06-10T16:21:16.000Z","updated_at":"2023-01-11T11:40:21.000Z","dependencies_parsed_at":"2022-09-09T10:10:21.967Z","dependency_job_id":null,"html_url":"https://github.com/yev/seleniumMvnScreenshot","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yev%2FseleniumMvnScreenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yev%2FseleniumMvnScreenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yev%2FseleniumMvnScreenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yev%2FseleniumMvnScreenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yev","download_url":"https://codeload.github.com/yev/seleniumMvnScreenshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238366693,"owners_count":19460170,"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":["java","jenkins","maven","screenshot","selenium"],"created_at":"2024-09-24T19:55:50.500Z","updated_at":"2025-10-26T16:30:42.811Z","avatar_url":"https://github.com/yev.png","language":"Java","readme":"[![Maven Package](https://github.com/yev/seleniumMvnScreenshot/actions/workflows/maven-publish.yml/badge.svg)](https://github.com/yev/seleniumMvnScreenshot/actions/workflows/maven-publish.yml)\n\n# Welcome to the repository for Selenium auto screenshots for failed TestNg tests\n-----------\n\nThis is an open source framework integrating TestNG, Selenium 2 and maven, giving you a possibilty to  automatically store **screenshots**, taken for every **failed** test in **maven** target folder, for their further investigation.\n\n\nIt features: \n\n* Taking a **screenshot** of a **failed test**\n* Including the **screenshot** to an **email sent** by your **CI-build**.\n* Stocking taken **screenshots** in easy managable way\n\n\nGetting started\n-----------\n\n###Configuration\n\n1. Put this jar to your classpath and annotate your class with special annotation ([see below](#annotation)).\n2. No third-party dependencies.\n\n### How to use\n--\n 1. Adding the following maven dependency in you ```pom.xml``` file:\n\n\n    ```xml \n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.yev\u003c/groupId\u003e\n      \u003cartifactId\u003escreenshot\u003c/artifactId\u003e\n      \u003cversion\u003e1.1\u003c/version\u003e\n    \u003c/dependency\u003e\n    ```\n    \n 2. \u003ca name=\"annotation\"\u003e\u003c/a\u003e Adding next annotation: ```@org.testng.annotations.Listeners(org.yev.selenium.testng.FailTestScreenshotListener.class)``` to your TestNG Selenium class:\n\n\n\n    ![listener example](https://raw.githubusercontent.com/yev/seleniumMvnScreenshot/master/docs/ListenerExample.png)\n    \n 3. \tSubsequently the plugin will find by reflection the **WebDriver instance** you are using and will do the rest for you.\n\n### Result\n--\nAfter running your TestNg selenium tests with Maven, you will find for each failed test the screenshot which was taken automatically when this particular test failed.\n\n\n![maven target dir example](https://raw.githubusercontent.com/yev/seleniumMvnScreenshot/master/docs/mvnTargerFolder.png)\n\n### Integration with Jenkins build\n--\nIt could be very useful to get the screenshot of failed test directly with email alert notification sent by Jenkins, when build becomes unstable. \n\n\nFor our example case the jenkins config will be following:\n\n\n![jenkins conf example](https://raw.githubusercontent.com/yev/seleniumMvnScreenshot/master/docs/selenium_Config_Jenkins_.png)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyev%2Fseleniummvnscreenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyev%2Fseleniummvnscreenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyev%2Fseleniummvnscreenshot/lists"}