GitXplorerGitXplorer
n

screenshot-server

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
0d2b536c832382081fa92fc310943ea5ede4ca0e

Bumping version to 0.0.2

sstep2yeung committed 9 years ago
Unverified
32ecb54846b46ae6621968d2919adacd085ac3aa

save filename by testid

sstep2yeung committed 10 years ago
Unverified
52764ba5b4837db6b40baa1a8513867e4120f724

change POST endpoint, only run acceptance tests, and no saves on duplicate screenshots

sstep2yeung committed 10 years ago
Unverified
2e5b0d1aebaee261a1cc43cb84386656f7e5b359

Add in stub for gathering drivers.

nnathanhammond committed 10 years ago
Unverified
e22c77572975020cb2768a3ce728d5df94cc8491

Align to common ordering.

nnathanhammond committed 10 years ago
Unverified
ae3c27cecd5bb8b3f9f70492104237e11f708452

Make license markdown.

nnathanhammond committed 10 years ago

README

The README file for this repository.

screenshot-server

This library is the server counterpart to screenshot-client. It listens to requests made from the browser clients it spins up and captures a screenshot. Use this project to bootstrap your testing script.

Configuration

Each browser on the system should be set up for WebDriver, including installation of necessary plugins.

You should modify the entrypoint of your testing setup to be through this library as it will maintain open WebDriver connections to each browser in which it is currently performing tests.

It is likely that you will want to use multiple devices as part of your process to get full visual test coverage. To have all images end up on the same server, map a local directory to a network resource.

Methodology

  1. On start, open up every available browser on the machine and connect to them using the WebDriver protocol.
  2. Once each of the browsers has been launched and is prepared to receive instructions, start an HTTP server.
  3. Direct the browser to visit the initial testing page inside of each browser.
  4. Listen for requests from the clients.
  5. Upon receiving a request, synchronously invoke the WebDriver takeScreenshot method.
  6. Write that file to a specified location based upon configuration.
  7. Return a 204 once the screenshot has been written, or a 500 if it fails.