Monday, March 12, 2007

How Do You Check a Bitmap?

How Do You Check a Bitmap?
If your application contains bitmap areas, such as drawings or graphs, you can
check these areas using a bitmap checkpoint. A bitmap checkpoint compares
captured bitmap images pixel by pixel.
To create a bitmap checkpoint, you indicate an area, window, or object that you
want to check. For example:

WinRunner captures a bitmap image and saves it as expected results. It then
inserts an obj_check_bitmap statement into the test script if it captures an
object, or a win_check_bitmap statement if it captures an area or window.
When you run the test on a new version of the application, WinRunner compares
the expected bitmap with the actual bitmap in the application. If any differences
are detected, you can view a picture of the differences from the Test Results
window.