comparing images

Mobile Testing, Android App Testing.
lnx09
Posts: 6
Joined: Wed Apr 20, 2016 2:18 pm

comparing images

Post by lnx09 » Fri May 20, 2016 10:36 am

hi

i want to compare images over different android devices.

lets say:
device 1 + device 2 = same screen resolution
device 3 = higher screen resolution

when i shot the screenshot with device 1,
and run the test on device 2 i get always failure.
when i run device 3 i get also a failure which could be ok, due to the different screen resolution.

my question is, if there it is a way to run the tests on different devices?
how to do proper screenshots and how to proper comparing images?

B'R'

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

Re: comparing images

Post by odklizec » Mon May 23, 2016 8:51 am

Hi,

Are you comparing entire screen or just particular elements? Have you tried to reduce the similarity threshold value (General Settings >> Imaging tab)?

Also, have you tried to take screenshots manually and compare them in an image editor? Are you there are no differences?

You can also enable Ranorex to show differences in report. See this blog post:
http://www.ranorex.com/blog/enhanced-fe ... alidation/
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

lnx09
Posts: 6
Joined: Wed Apr 20, 2016 2:18 pm

Re: comparing images

Post by lnx09 » Mon May 23, 2016 10:20 am

I try every possibility that is given.
compareimage, containimage, setting different similarities.
cropping screenshots.

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

Re: comparing images

Post by odklizec » Mon May 23, 2016 11:07 am

Hi,

Could you please post "exact" error message you are getting? Also, have you tried the enhanced image validation techniques from the suggested link? This way you can find what exactly is different in your images.

BTW, what version of Ranorex do you use?
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