KaiHa / GuiTest

Small scripts for making and comparing screenshots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GuiTest

Small scripts for making and comparing screenshots. The main purpose of this scripts is in helping with the regression test of VisPro/VisTwo applications. But with a few modifications this will also work for testing other graphical user interfaces.

The process is the following:

  1. Record the mouse events. (xmacrorec2 | ConvertClicks > clicks.txt)
  2. Replay the mouse events and make screenshots after each click. This screenshots will become your reference screenshots. (screenshot.sh or Screenshot)
  3. Edit the reference screenshots so that each pixel that is expected to change is transparent. For example if a clock is displayed in your application under test make the area of the clock transparent. MaskImg can help you by transferring the transparent areas of one image onto another image.
  4. Install the new version of your application under test.
  5. Replay the mouse events and make screenshots after each click. (screenshot.sh or Screenshot)
  6. Use DiffImg to compare these screenshots with your reference screenshots.

About

Small scripts for making and comparing screenshots

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 93.1%Language:Shell 6.9%