Page 1 of 1

How to validate image based test

Posted: Thu Sep 01, 2016 7:31 am
by subodh4u7
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.

Re: How to validate image based test

Posted: Fri Sep 02, 2016 9:25 am
by RobinHood42
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

Re: How to validate image based test

Posted: Fri Sep 02, 2016 11:16 am
by subodh4u7
Thanks for the response.

Any other solution rather than comparing the image screenshot.

That would be really appreciated.

Re: How to validate image based test

Posted: Mon Sep 05, 2016 9:38 am
by RobinHood42
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