> Using the Synchronize On Screen Rectangle Command (xySyncRect)
eValid has an advanced feature "Synchronize On Screen Rectangle"
which calculates a checksum on a chosen screen area during
recording and compares it with the checksum taken from the same
area during playback.
This is often a very effective way to validate an object which
cannot be normally validated through another common eValid
command, "Validate Selected Text".
Use of this command is suggested when you wish to test highly
complex pages or pages that utilize applets. This command is used
to see if the Applet is fully loaded. This is accomplished by
creating a checksum of the fully loaded Applet during recording
and comparing it with the one created from the same region during
playback.
(1) Navigate to your favorite site which you know contains an
image that is static.
(2) Start a normal recording.
(3) Click on "eValid > Record > Validate > & Synchronize > Screen
Rectangle", or simply press "Ctrl +Q".
(4) A prompt will the appear informing you to click on "The Upper
Left Hand Side" and then "The Lower Right Hand Side" to create
the rectangle to be validated.
(5) After clicking a rectangle will appear briefly to confirm the
area that was selected. This is the area from which the
checksum is generated.
(6) Stop Recording.
(7) Play back your script.
(8) As you will see, if the image has not changed, the checksum
that was produced during playback should match the one
recorded, thereby validating the image. Failures are reported
in the Error/Messages log.
Note 1: A change in the image by even one pixel will result in a
different checksum and will cause the playback to fail.
Note 2: Related "Synchronize On Screen Rectangle" commands such
as "Draw Visible Outline", "Retry Interval", and "Max. Retry
Interval" are available in the eValid Advanced Preferences area
under the the Record/Play Preferences menu.
|