TMUGHILENDRAN
8 years agoOccasional Contributor
How to get the image compare result as image and save it to specific location
Hi,
I like to compare 2 image and get the difference in the image save save it to a specific location
for example :
i have a Baseline ImageTestline ImageDiff Image
So i able to get the difference in logs by using Region.Compare(Pic1,Pic2)
but that Difference image i like to save in a proper location for my reference.
Thanks in Advance.
Comparing the images using the Difference method ResultImage = Pict1.Difference(Pict2); if (strictEqual(ResultImage, null)) Log.Message("The images are identical"); else Log.Picture(ResultImage);
you can save using https://support.smartbear.com/testcomplete/docs/reference/program-objects/picture/savetofile.html