Page 1 of 1

comparing images

Posted: Fri May 20, 2016 10:36 am
by lnx09
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'

Re: comparing images

Posted: Mon May 23, 2016 8:51 am
by odklizec
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/

Re: comparing images

Posted: Mon May 23, 2016 10:20 am
by lnx09
I try every possibility that is given.
compareimage, containimage, setting different similarities.
cropping screenshots.

Re: comparing images

Posted: Mon May 23, 2016 11:07 am
by odklizec
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?