Quantcast
Channel: froglogic
Viewing all articles
Browse latest Browse all 398

Squish tip of the week: How to automatically update screenshot verification points

$
0
0
Did you know that Squish supports an easy way to deal with screenshot verification points when there are significant changes in the appearance of applications?

As it is quite common that GUI’s of applications change with new releases, features and enhancements, it would be a real pain to retake all screenshots manually.

The solution to this problem is to automatically update all screenshot verification points with one single command:

SQUISH_LEARN_SCREENSHOTS=1

Setting this variable will force Squish to update all the screenshots used in screenshot verification points.

How to automatically update screenshot verification points

Example for Windows: After pressing Win+R and executing “cmd” the command prompt will open, type:

set SQUISH_LEARN_SCREENSHOTS=1 *enter*
“C:\Program Files (x86)\froglogic\squish-6.0.3-windows\squishide.exe” *enter*

Now execute all the tests with screenshot verification points – Squish will retake all the screenshots in the test scripts.

Once it is done, quit Squish and start it again without the set variable above. Squish will now compare screenshot verification points with updated screenshots.

Related topics

Viewing all articles
Browse latest Browse all 398

Trending Articles