Monday, March 12, 2007

Bitmap Checkpoint Tips

Bitmap Checkpoint Tips
• To capture an area, choose Create > Bitmap Checkpoint > For Screen Area or
click the Bitmap Checkpoint for Screen Area button on the User toolbar. (To
see this menu command, a test must be open. Otherwise it is inactive.) Use the
crosshairs pointer to mark the area that you want WinRunner to capture.
WinRunner inserts a win_check_bitmap statement into your test script. This
statement includes additional parameters that define the position (x- and ycoordinates)
and size (width and height) of the area.
• For overnight test runs, you can instruct WinRunner not to display a message
when a bitmap mismatch is detected. Choose Settings > General Options. In
the General Options dialog box, click the Run tab and clear the Break when
verification fails check box. This enables the test to run unattended.
• When running a test that includes bitmap checkpoints, make sure that the screen
display settings are the same as when the test script was created. If the screen
settings are different, WinRunner will report a bitmap mismatch.
• If you want to create new expected results for a bitmap checkpoint, run the test
in Update mode. WinRunner overwrites the existing expected bitmaps with new
expected bitmaps captured during the Update run.