Forum Discussion

balathavamani's avatar
balathavamani
Occasional Contributor
9 years ago

Region Checkpoint

Hi all,

 

I need load two images from folder & need to compare this using regions checkpoint. is this possible. for example if i have base images in Folder A & actual images in Folder B, here i need to load image1 from folder A & image 1 from folder B & compare this two images.

 

Can any one share me a code for doing this ? Thanks in advance.

 

 

2 Replies

  • ArtemS's avatar
    ArtemS
    SmartBear Alumni (Retired)

    Hi balathavamani,

    You may use the Regions.Compare method for this purpose:

     

    Sub Test
      'The Regions object is available if your project contains the Stores | Regions collection.
      If Not Regions.Compare("C:\FolderA\image1.png", "C:\FolderB\image1.png") Then
        Log.Error "The compared images are not identical."
      End If
    End Sub

     

     

    • tmahender12's avatar
      tmahender12
      Frequent Contributor

      I have multiple images in Stores.regions, can i compare with actuall images are run time?