自动更新屏幕截图验证点

最后编辑了

It is possible to force Squish to update all the screenshots used in screenshot verification points by setting the environment variable SQUISH_LEARN_SCREENSHOTS to 1.

例如,在Windows上执行以下操作:

set SQUISH_LEARN_SCREENSHOTS=1
C:\Users\MyUser\squish-4.x-qt47x-win32-msvc10\ide\squishide.exe

Then execute all the tests so that Squish will retake all the screenshots. At the end, quit Squish and start it again normally (i.e., so that there is no SQUISH_LEARN_SCREENSHOTS environment variable set), and Squish will compare screenshots as usual — only now with updated screenshots.

此功能旨在为应用程序对其外观具有一些重大变化,这将使大量屏幕截图验证无效。