Babulu
8 years agoContributor
How to check the images difference in region checkpoint
Sub ImageDifference()
dim Pict1,Pict2
Set Pict1 = ProjectSuite.Path & "ABC\Stores\Regions\imagePng1.png"
Set Pict2 = ProjectSuite.Path & "ABC\Stores\Regions\imagePn1.png"
Pict1.LoadFromFile("D:\123.png")
Pict2.LoadFromFile("D:\1231.png")
' Comparing the images using the Compare method
If Not Pict1.Compare(Pict2) Then
Log.Picture(Pict1)
Log.Picture(Pict2)
Log.Error "The compared images are not identical"
End If