Page 1 of 1

How to use a snapshot captured by the spy?

Posted: Thu Sep 09, 2010 8:47 pm
by Thor222
I'm writing a branding test and I want to compare our logo with what’s shown in the browser.

I’ve used the spy to locate the logo and added to my repository.

I right-clicked on this repository item and chose "Caputure a sceen shot" and I now have a logo child element

I imagine the snapshot persists over time 'till I change it, so my test should simply call

Ranorex.Imaging.Compare( repo.logo, repo.logo.snapshot) and pass when they are the same.

But that doesn’t work.

What’s the right way to do this?

Re: How to use a snapshot captured by the spy?

Posted: Fri Sep 10, 2010 8:15 am
by artur_gadomski
I haven't done any image comparison based testing yet but from what I know there is a difference between screenshot (image) and snapshot (Ranorex structure of UI). Maybe you're using the wrong one.

Re: How to use a snapshot captured by the spy?

Posted: Fri Sep 10, 2010 8:27 am
by Support Team
Hi,

The easiest way to do an image validation, is using the Ranorex Recorder in Image Based mode. Please take a look to following documentation http://www.ranorex.com/support/user-gui ... ation.html

If you want to do your Image Based Validation in code, please take a look to this documentation http://www.ranorex.com/support/user-gui ... ition.html

Regards,
Peter
Ranorex Team

Re: How to use a snapshot captured by the spy?

Posted: Fri Sep 10, 2010 12:47 pm
by sdaly