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:
- Record the mouse events. (
xmacrorec2 | ConvertClicks > clicks.txt
) - Replay the mouse events and make screenshots after each click. This
screenshots will become your reference screenshots. (
screenshot.sh
orScreenshot
) - 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. - Install the new version of your application under test.
- Replay the mouse events and make screenshots after each click.
(
screenshot.sh
orScreenshot
) - Use
DiffImg
to compare these screenshots with your reference screenshots.