Hello,
Our SUT includes responsive WebApp, AndroidApp and IOSApp.
We lately tried to write a scenario where we have to check that an icon within a button field
is replaced by a similar icon with a checkmark on it.
(ignore the color)
The icon does not have any id, the button has.
Depending on the environnement, size/resolution are different, so the test we wrote runs successfully in one context, but not in the others.
How should we write our comparison to be portable ?
Is it possible to getsize/resize images before comparison ?
How to develop cross browser tests using image validation
Re: How to develop cross browser tests using image validation
Hello floolf,
Generally, I would recommend using image based validation only if there's no viable alternative. If you perform image based validation on remote machines, you have to make sure that color and resolution settings are the same as on the machine you made the test/recording on.
Maybe there's another way to validate the icon? It would be helpful if you could upload a Ranorex Snapshots of the corresponding element: https://www.ranorex.com/support/user-gu ... pshot.html
Generally, I would recommend using image based validation only if there's no viable alternative. If you perform image based validation on remote machines, you have to make sure that color and resolution settings are the same as on the machine you made the test/recording on.
Maybe there's another way to validate the icon? It would be helpful if you could upload a Ranorex Snapshots of the corresponding element: https://www.ranorex.com/support/user-gu ... pshot.html