Public | Automated Build

Last pushed: 3 years ago
Short Description
docker run -p 9000:9000 aeharding/webdrivercss-adminpanel
Full Description

WebdriverCSS Adminpanel

This application helps you to manage all your image repositories of your CSS regression tests made with WebdriverCSS.
It provides an API to synchronise and configure them. This allows you to exchange the repositories with your peers and
colleagues to be able to run regression tests decentralized.


  • NodeJS and npm
    For installing packages.
    Download and run the NodeJS installer.
  • Bower
    For installing client-side dependencies.
    Run npm install -g bower.
  • Ruby, Sass, and Compass
    Needed for Compass extension to SASS, which provides CSS niceties.
    Install Ruby
    and run gem install compass.

Note: Grunt will be installed locally with npm.
If you'd like to install Grunt globally, run npm install -g grunt-cli.


First download this repository and change to the project directory:

$ git clone
$ cd webdrivercss-adminpanel

Then download all client and server-side dependencies:

$ npm install
$ bower install

Last but not least start the application by running:

$ grunt serve:dist

This command minifies all stylesheets and scripts and starts the application on localhost:9000.
I'm not going to describe how to deploy a Node.js application to a server. There are plenty of tutorials out there who
describe how to do that very well.


By default, the application provides the following API interfaces:

GET requests

  • GET /api/repositories ("Content-Type": "application/json")<br>
    Returns a list of all current stored image repositories.<br>

    Example Request:<br>

      "gz": ["amoeba-example.tar.gz"],
      "repositories": {
        "amoeba-example": {
            "images": ["contact.baseline.png","team.baseline.png","team.regression.png"],
            "diffs": ["team.diff.png"]
  • GET /api/repositories/:file ("Content-Type": "application/octet-stream")<br>
    Returns the image repository tarball.

    Example Request:<br>

  • GET /api/repositories/:project/:file ("Content-Type": "image/png")<br>
    Get a current or new image from a specific repository.

    Example Request:<br>

  • GET /api/repositories/:project/diff/:diff ("Content-Type": "image/png")<br>
    Get diff image of a specific repository.

    Example Request:<br>

POST requests

  • POST /api/repositories/confirm ("Accept": "application/json")<br>
    Confirm image diff if changes were made on purpose.

    Example Request:<br>

    JSON Parameters:<br>
    file - {String} filename of new file<br>
    project - {String} project name

  • POST /api/repositories/* ("Accept": "application/octed-stream")<br>
    Takes an image repository tarball (tar.gz),
    unzips it, and saves it to the file system.

    Example Request:<br>

    JSON Parameters:<br>
    gz - {Object} repository tarbal

Setup WebdriverCSS

For instructions on how to install WebdriverCSS please checkout the repository website
on GitHub. There is also described how to sync your
repository to the WebdriverCSS - Adminpanel application. Here is an example how to use this application in order to synchronise
image repositories created with WebdriverCSS:

var WebdriverIO = require('webdriverio'),
    WebdriverCSS = require('webdrivercss');

// init webdriverio
var client = WebdriverIO.remote({
    desiredCapabilities: {
        browserName: 'firefox'

// init webdrivercss
WebdriverCSS.init(client, {
    screenshotRoot: 'myProject',
    api: 'http://localhost:9000/api/repositories/'

    .sync() // BEFORE: download current stored image repository of the project (if existing)

    .webdrivercss('exampleTest', {
        name: 'homepage',
        elem: '#section'

    .sync() // AFTER: zips and uploads state of image repository


Any contributions or patches are welcome! In lieu of a formal styleguide, take care to maintain the existing coding style.

Docker Pull Command