Skip to content

A Java clone of the Wraith website comparison tool.

License

Notifications You must be signed in to change notification settings

earelin/JWraith

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWraith

Build Status codecov

A Java clone of the Wraith website comparison tool.

Usage

jwraith [browsers|capture|history|latest|spider] [configuration file path]

Modes of operation:

browsers: Compares a website among different browsers
capture: Compares between two websites
history: Creates a history capture to be compared later
latest: Compares current website with the last history capture
spider: Crawls website to get all paths

Use cases

Compare stating and production websites

Configuration file

browser_name: "phantomjs"
driver_executable: "/usr/local/bin/phantomjs"

directory: "shots"

domains:
  base: "http://example.com"
  compare: "http://staging.example.com"
  
paths_file: "paths.txt"

workers: 4

screen_widths:
  - 320
  - 1280
  
spider_skips:
  - "^/ajax/.*"
  - "^/calendar/ical/.*"

reports:
  threshold: 15
  thumbnail_width: 300
  thumbnail_height: 300

First we must capture all website paths:

jwraith spider configuration.yml

Once we have the links we can launch the compare process

jwraith capture configuration.yml