background image
<< Test Cases - Verifying an object's bitmap | Test Cases - Verifying using methods >>
Test Cases - Bitmap Agent options
<< Test Cases - Verifying an object's bitmap | Test Cases - Verifying using methods >>
User's Guide
127
5 D
ESIGNING
AND
R
ECORDING
T
ESTCASES
Recording the verification stage
Note Client Area of Window is not supported on OSF/Motif.
5
In the Bitmap File Name field, enter the full path of the bitmap file that
will be created.
The default path is based on the current directory. The default file name
for the first bitmap is bitmap.bmp (on OSF/Motif, it is bitmap.xpm). Use
the Browse pushbutton if you need help choosing a new path or name.
6
Click OK.
If you selected Entire Window or Client Area of Window, the bitmap is
captured and you return to your test application.
If you select Portion of Window, position the cursor at the desired
location to begin capturing a bitmap. While you press and hold the left
mouse button, drag the mouse to the screen location where you want to
end the capture. Release the mouse button.
7
Complete your testcase.
Bitmap Agent options Various bitmap options determine bitmap
verification behavior:
To globally set these options for a group of scripts, use the Agent Options
dialog. To locally set these options within a script or testcase, use the
SetOption method, for example:
Agent.SetOption (OPT_BITMAP_MATCH_COUNT, 3)
Option
Description
OPT
_
BITMAP
_
MATCH
_
COUNT
The number of successive snapshots that must
be the same for the bitmap to be considered
stable.
OPT
_
BITMAP
_
MATCH
_
INTERVAL
The time interval between snapshots to use
for ensuring the stability of the image.
OPT
_
BITMAP
_
MATCH
_
TIMEOUT
The total time allowed for a bitmap to
become stable
OPT
_
BITMAP
_
PIXEL
_
TOLERANCE
The number of pixels of difference below
which two bitmaps are judged equivalent.
This option is not supported on OSF/Motif.