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.
How to validate image based test
How to validate image based test
Regards,
Subodh
Subodh
- RobinHood42
- Posts: 324
- Joined: Fri Jan 09, 2015 3:24 pm
Re: How to validate image based test
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.
Hope this makes sense.
Cheers,
Robin
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.
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.... it might be possible that instead on pan something else happened and hence there is difference and therefore its passed.
Hope this makes sense.
Cheers,
Robin
Re: How to validate image based test
Thanks for the response.
Any other solution rather than comparing the image screenshot.
That would be really appreciated.
Any other solution rather than comparing the image screenshot.
That would be really appreciated.
Regards,
Subodh
Subodh
- RobinHood42
- Posts: 324
- Joined: Fri Jan 09, 2015 3:24 pm
Re: How to validate image based test
Hi,
Cheers,
Robin
Since these operations do visibly effect the UI, recognized as screenshots, the best way would be to compare those screenshots.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.
Cheers,
Robin