Compare two snapshots

Ask general questions here.
tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

Compare two snapshots

Post by tvu » Tue Jun 14, 2016 7:20 pm

Is there a way to compare two snapshots and find out the differences between the two?

Thanks in advance.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Compare two snapshots

Post by odklizec » Wed Jun 15, 2016 7:25 am

Hi,

I guess you want to compare the snapshots from code, right? The best place to start with this is this code sample:
http://www.ranorex.com/support/user-gui ... html#c7781
This sample shows comparison of table with table stored in snapshot. I think you can easily modify the code to replace reference table element with another snapshot?

The requirement is to have both snapshots uncompressed! By default, Ranorex saves snapshots in compressed (zip) format. So you have to unpack them first or to create uncompressed snapshots (either via spy or from code).
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

Re: Compare two snapshots

Post by tvu » Wed Jun 15, 2016 6:56 pm

Thanks odklizec.

I was hoping Ranorex had a tool that simply list the differences between two snapshot. I am having a hard time trying to manually figure out what changes are occurring before and after an action on an app. But, I can do it via code with the information you provide.

Thanks again.