Working with Masks
Chapter 8 - Using the Comparators
Working with Masks
You can create masks in the Image Comparator with the
Edit > New Mask
Masks are used to hide the underlying masked area from comparison when test
scripts are played back. Any areas of the image that contain a mask are not compared
when you play back a test script that contains an Image verification point.
Use masks to ensure that certain regions are not tested. For instance, if your
application has a date field, you might want to mask it to avoid a failure every time
the test script is played back. You can also apply masks to hide differences that you
determine were caused by intentional changes to the application, so that they do not
cause failures in future tests.
Because you can only edit the Baseline file, you cannot perform the following
procedures in the Actual file. However, when you select a mask in the Baseline file,
the mask is also selected in the Actual file. You cannot modify the mask in the Actual
file--it is shown there for convenience only.
You can do the following with masks:
Move and resize masks
Cut, copy, and paste masks
Automatically mask differences
For step-by-step instructions, search for each task in the Image Comparator Help.
Working with OCR Regions
Robot uses Optical Character Recognition (OCR) regions to read the text within a
designated region and compare it in subsequent playbacks of the test script.
You can use OCR regions to verify proper operation of an application that
dynamically paints text in window areas or where the Actual text is difficult to obtain.
OCR regions are also useful in situations where a text string's font or weight may
change unexpectedly but go undetected using traditional verification methods. To
achieve the correct verification, you can define OCR regions on existing or newly
captured Image verification points.