How to use the compare image functionality in Ranorex

Ask general questions here.
premravi
Posts: 128
Joined: Tue Jan 08, 2019 1:55 pm

How to use the compare image functionality in Ranorex

Post by premravi » Thu Jul 11, 2019 12:44 pm

Hi,

The requirement is that I have to take two images of "Top App Bar" in our application, one image before running the report and other after running the report and while comparing both should be same

Please help me to understand how can I use the compare image functionality of Ranorex using code module

After that the next step will be if condition

if (actual image == expected image)
{
print "success"
}
else
{
print " Failure "
}

Please help me to resolve this issue

Regards

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

Re: How to use the compare image functionality in Ranorex

Post by odklizec » Thu Jul 11, 2019 12:57 pm

Hi,

Check for example this code sample:
https://www.ranorex.com/help/latest/han ... imagesibri
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