Forum Discussion
AlexeyKolosov
Staff
14 years agoHi Johnny,
There are slight differences between the two images - possibly caused by gradients or smoothing. Setting the PixelTolerance and the ColorTolerance parameters of the Region checkpoint to 4 will make TestComplete treat them as equal:
In the future, I recommend that you follow the suggestion provided in the Why Image Comparison Fails help topic if you face such problems again.
There are slight differences between the two images - possibly caused by gradients or smoothing. Setting the PixelTolerance and the ColorTolerance parameters of the Region checkpoint to 4 will make TestComplete treat them as equal:
var img2 = Utils.Picture;
img2.LoadFromFile("d:\\DELETE ME\\A\\AA.bmp");
Regions.A_bmp.Check(img2, false, false, 4, 4);
In the future, I recommend that you follow the suggestion provided in the Why Image Comparison Fails help topic if you face such problems again.