How can I view the differences between bitmaps from a SilkTest results file returned to SilkCentral Test Manager?

0 Likes

Problem:

How can I view the differences between bitmaps from a SilkTest results file returned to SilkCentral Test Manager?

Resolution:

QUESTION
----------------------------------

How can I view the differences between bitmaps from a SilkTest results file returned to SilkCentral Test Manager?

ANSWER
----------------------------------

The VerifyBitmap takes an argument that is the location of the baseline bitmap. When this method is executed an *.rmp file is generated in the same directory of the baseline image. This location is also hard-coded into the results file.

In order for SilkCentral Test Manager to load the comparison images specified by the results file, their location must be accessible to the machine Test Manager is currently installed on. To do this, your initial SilkTest script must be tweaked. The VerifyBitmap method in your SilkTest script may take the form:

wMainWin.VerifyBitmap("C:\Baseline-Image\basline.bmp")



This is fine for a script that is being run as standalone, but for SilkCentral Test Manager, the baseline image specified would be inaccessible from the results file returned to it as a local directory on the execution machine was specified. If we share the Baseline-Image directory across the network, we can change our VerifyBitmap method to look like the following:

wMainWin.VerifyBitmap("\\My-Machine\Baseline-Image\baseline.bmp")


Now instead of using a location specific to a machine, we are now using a network location that can be accessed from any machine across the network. Therefore when the results file is loaded from SilkCentral Test Manager, the comparison bitmaps can be loaded into the bitview tool.

Old KB# 24597
Comment List
Anonymous
Related Discussions
Recommended