Skip to content

linslin/PHPUnit-selenium-HTMLGallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

PHPUnit-selenium-HTMLGallery

=======================

Notice

PHPUnit - php extension to generate a offline HTML-Gallery for selenium Screenshots.

Features

  • Create HTML offline gallery from selenium screenshot folder
  • Gallery comes with a Zoom function

Screenshots

ScreenShot

overview with menu and detail view

ScreenShot

comes with zoom function to check pixels ;)

ScreenShot

selenium also works with hybrid app and ripple

Tested with

  • TeamCity CI 8.XX, Phing 2.6.1 & PHPUnit 1.3.2

Install & configuration with Phing

  1. Checkout https://github.com/linslin/phpunit-seleniumGallery into build/lib/
  2. Modify build.xml and ad ad-hoc: (this is on way you can run this script)
<?xml version="1.0" encoding="UTF-8" ?>
<project name="MyProject" default="hello">

    <!-- ============================================  -->
    <!-- Exemple release                              -->
    <!-- ============================================  -->
    <target name="example">
    
       <!--  create report dir -->
       <mkdir dir="reports/" />
       <mkdir dir="reports/selenium" />
       <mkdir dir="reports/selenium/gallery" />
        
       <!--  generate selenium gallery by call adhoc -->
       <seleniumGallery/>
    <target> 
        
    <adhoc-task name="seleniumGallery"><![CDATA[
        class seleniumGalleryTask extends Task {
          function main() {
             require_once 'lib/seleniumGallery/seleniumGallery.php';
             $seleniumGallery = new seleniumGallery();
             $seleniumGallery->inputDir = 'reports/selenium/screenshots';
             $seleniumGallery->baseDir = getcwd().'/lib/seleniumGallery';
             $seleniumGallery->generate();
          }
      }
    ]]></adhoc-task>
</project> 
  1. A HTML-Gallery will be created in build/reports/selenium/gallery/

License

phpunit-seleniumGallery is released under GNU (GPL-3.0) license.

About

phpUnit - seleniumGallery is an extension to create HTML-Gallery from Selenium Screenshots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages