Bitmap Functions

CaptureBitmap, SYS_CompareBitmap, WaitBitmap, and VerifyBitmap are built-in bitmap-related 4Test functions. In particular, VerifyBitmap is useful for comparing a screen image during the execution of a test case to a baseline bitmap created in the Bitmap Tool. If the comparison fails, Silk Test Classic saves the actual bitmap in a file. In the following example, the code compares the test case bitmap (the baseline) against the bitmap of TestApp captured by VerifyBitmap:

TestApp.VerifyBitmap ("c:\sample\testbase.bmp")