How to validate image based test

Ask general questions here.
User avatar
subodh4u7
Posts: 68
Joined: Tue Jan 06, 2015 8:26 am

How to validate image based test

Post by subodh4u7 » Thu Sep 01, 2016 7:31 am

Hi,

I have application under test which is windows application. Application area is divided into segments(compartments) in which images are displayed. This image has some text, labels and other information. And we do some operation, text or labels are changing accordingly.

So my question is, Ranorex recognise as screenshot of each segments. What would be best way to validate if i perform some operation e.g. zoom/pan/scroll/drawn an rectangle on the image whether really these operations happened.

One way is to capture the image as bitmap and compare but any diff will may pass or fail our step.
e.g. we are trying to pan, took the screenshot before panning, after performing pan taken the screenshot and compere, it might be possible that instead on pan something else happened and hence there is difference and therefore its passed.

Kindly suggest, looking forward.
Regards,
Subodh

User avatar
RobinHood42
Posts: 240
Joined: Fri Jan 09, 2015 3:24 pm

Re: How to validate image based test

Post by RobinHood42 » Fri Sep 02, 2016 9:25 am

Hi Subodh,

In general, you need to ensure a consistent state of your application when running a test against it. Especially, when comparing images, the application under test must behave like expected.
... it might be possible that instead on pan something else happened and hence there is difference and therefore its passed.
Why would this happen? A automated test scenario will exactly do the steps as recorded. So there shouldn't be any differences from one execution to another.

Hope this makes sense.

Cheers,
Robin

User avatar
subodh4u7
Posts: 68
Joined: Tue Jan 06, 2015 8:26 am

Re: How to validate image based test

Post by subodh4u7 » Fri Sep 02, 2016 11:16 am

Thanks for the response.

Any other solution rather than comparing the image screenshot.

That would be really appreciated.
Regards,
Subodh

User avatar
RobinHood42
Posts: 240
Joined: Fri Jan 09, 2015 3:24 pm

Re: How to validate image based test

Post by RobinHood42 » Mon Sep 05, 2016 9:38 am

Hi,
So my question is, Ranorex recognize as screenshot of each segments. What would be best way to validate if i perform some operation e.g. zoom/pan/scroll/drawn an rectangle on the image whether really these operations happened.
Since these operations do visibly effect the UI, recognized as screenshots, the best way would be to compare those screenshots.

Cheers,
Robin