Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
259 lines (167 sloc) 7.38 KB

Web server instructions

JLineup can be run as a small web service which offers a simple REST interface to take JLineup jobs.


You can simply download the web version by getting the jlineup-web.jar from Maven Central in a terminal window:

wget -O jlineup-web.jar

Now you have a jlineup-web.jar in your current directory.

For best results, you need a "real" web browser installed on your system. JLineup supports Google Chrome (Chromium also works) or Firefox at the moment. As JLineup is written in Java, you need a Java Runtime Environment in version 8 or higher. OpenJDK is fine!

JLineup can use PhantomJS internally, if no other browser is available. This is not recommended, as PhantomJS is not maintained any more. More and more modern web features don't work in PhantomJS, so it's only an emergency fallback for very simple websites.

If those prerequisites are fulfilled, you can start the JLineup server:

java -jar jlineup-web.jar

If you see an error similar to this:

 [main] ERROR o.a.catalina.core.StandardService - Failed to start connector [Connector[HTTP/1.1-8080]]
Caused by: Address already in use

something else is running on port 8080 on your machine. You could stop the conflicting server or you could run JLineup on another port like this:

java -Dserver.port=5000 -jar jlineup-web.jar

Everything is up and running now for your first steps. The examples assume that JLineup runs on port 8080. Change them if you run it on a different one.

Head to http://localhost:8080/internal/status with a browser to see JLineup's status page. It should look similar to this:

JLineup Status Page

REST Interface

JLineup has a small set of methods, which live in one context:

Context: /runs

  • GET /runs/{runId}

    • Gets you the status of a given run
    • runId is a String. You create a runId through starting a 'before' step
    • Parameters: None
    • The content type is application/json
  • POST /runs

    • Post your JLineup config to this endpoint to start a 'before' run.
    • If your config is valid, JLineup sends an 202 Accepted return code.
    • The created runId is returned in the location header.
    • The content type is application/json
  • POST /runs/{runId}

    • Starts an 'after' run for the given runId.
    • The content type is application/json

Hint: You can always see a human readable representation of your jobs on http://localhost:8080/internal/reports


Use a REST client of your choice ans post the example config to your server:

POST http://localhost/runs/


  "name": "Example",
  "urls": {
    "" : {}
  "browser": "chrome-headless"

Content-Type: application/json

You should get an 202 as answer. Then just post the same config again to create a second run.

If you go to http://localhost:8080/internal/reports now, you should see your two runs like this:

Reports page

Both runs finished the 'before' step, like their status says.

Now start the 'after' run for one of them by taking the existing ID and post to it:

POST http://localhost/runs/PUT_THE_ID_HERE.

The reports page should show that one of the runs went through the 'after' step and a report was generated:

Reports page after the after run

You can click on the Report button to see the report:


Click on the green url to open the details:



The JLineup web server uses Edison Microservice which is based on Spring Boot. You can configure it by or yaml like any Spring Boot application.

These are the internal defaults:

  working-directory: /tmp/jlineup/
  screenshots-directory: report-{id}
  report-directory: report-{id}
  max-parallel-jobs: 1

    title: JLineup
    description: Takes screenshots of webpages and checks for differences

    name: JLineup

You can save this file as application.yml and put it into the same directory as jlineup-web.jar. After that, you can change it's contents to your needs.

Additional to the JLineup configuration properties below, you can use all Spring Boot Application Properties to specify application behavior, as JLineup is a Spring Boot 2 app.

Also, there are Edison Microservice Application Properties that can be used to configure the core and populate the status page of JLineup.

Web Server Properties Reference


This is the path to JLineup's working directory during jobs. JLineup needs write permissions to this folder's path. It will be created during first run if not existing.

  • Default: /tmp/jlineup/


This folder will contain the screenshots of the JLineup job. If you don't want to overwrite previous job's screenshots, you can use {id} as placeholder for the job id that is randomly created when you start a new job. So you'll have unique folders for all job screenshots.

By default screenshots and report will go to the same folder, which is totally fine.

The path is relative to the working directory!

  • Default: report-{id}


JLineup can run multiple jobs concurrently. Make sure there is enough RAM on the machine for max-parallel-jobs x max-threads-per-job browser instances that can result from these settings.

See jlineup.max-threads-per-job also.

  • Default: 1


JLineup can run multiple threads to speed up jobs. See threads configuration in job to see how these settings go together.

This specifies, how many browser instances per job JLineup maximally starts on this JLineup server instance.

Make sure there is enough RAM on the machine for max-parallel-jobs x max-threads-per-job browser instances that can result from these settings.

See jlineup.max-parallel-jobs also.

  • Default: 4


JLineup web will deny requests for jobs that contain a browser that is not in the list of installed browsers. If you want to allow only a subset of installed browsers or if you don't have Firefox and Chrome installed, you can narrow the settings.

  • Default: chrome-headless, firefox-headless, phantomjs

You can specify any Chrome command line parameters, that you want to handle to the Chrome instances launched by JLineup.

See here for a list of Chrome command line switches

  • Example: --use-shm=false, --bwsi
  • Default: Empty


You can specify any Firefox command line parameters, that you want to handle to the Firefox instances launched by JLineup.

See here for a list of Firefox command line options.

  • Example: -private
  • Default: Empty

Back to Main page

You can’t perform that action at this time.