

testSettings.logScreenshotOnError for logging a screenshot every time a script error occurs.
THE BIG SQUISH VERIFICATION
In many cases, a quick look at a screenshot can give a useful hint as to what caused a verification to fail. This can be extremely useful for diagnosing test failures. Maybe the overall state of the application under test is broken due to external factors? Additional information can be provided to the developers via visual inspection of the desktop. Imagine a sporadic test failure which cannot be explained. testSettings.logScreenshotOnFail for logging a screenshot every time a verification fails.In addition to the test.attachDesktopScreenshot function, Squish also features three APIs to create screenshots for you automatically in different situations: A message box (possibly an error) is shown by the operating system.
THE BIG SQUISH PDF

By storing screenshots along with the test report data you get to see the state of the screen as it was at various moments during test execution. Screenshots in Squish reports can help with this. Watching tests can be boring, and there may be better things to do! Last but not least, tests typically take a couple of minutes, minimum.Most tests are often executed outside of working hours.It can be hard to follow the sequence of steps visually. Watching Squish as it replays tests to determine what’s happening is often not viable: a button was disabled even though it should have been enabled. However, sometimes it can be hard to tell why a verification failed. The resulting test reports can be stored in a wide range of formats or post-processed by other tools. Squish is a professional tool for creating, running and maintaining GUI tests. Take advantage of additional screenshots in Squish reports to get a better understanding of what happened. But comprehensive verifications can come at a cost: the resulting test reports become huge and daunting to analyze. The Squish GUI Tester excels at verifying an application’s user interface.
