Page 1 of 1

Getting Compared and Success image Validation to show

Posted: Thu Aug 12, 2010 10:40 pm
by smalldoorman
In Ranorex 2.3.3, the report successfully shows if a validation fails. And in doing so, it shows what was searched and what was found.

I'm wondering if there is any way that I can have the same happen if the validation succeeds? This way if I have to send out my results and someone wants to know exactly what i was validating against, they will know just by referencing the results.

Re: Getting Compared and Success image Validation to show

Posted: Thu Aug 12, 2010 11:05 pm
by Ciege
I've not tried it but I think you should be able to use the Imaging.CaptureCompressedImage command.

See here: http://www.ranorex.com/forum/access-ima ... t1482.html

Re: Getting Compared and Success image Validation to show

Posted: Mon Aug 16, 2010 6:58 am
by artur_gadomski
I preffer Report.Screenshot() as it puts the screenshot into report by itself.

Re: Getting Compared and Success image Validation to show

Posted: Mon Aug 16, 2010 3:57 pm
by Ciege
Report.Screenshot() takes a screenshot of the existing screen.

I assumed that when he asked "exactly what i was validating against" that he meant what his validation base image was, which would be stored in the repository.

If my assumption was incorrect, and you just want a current screenshot, then yes Report.Screenshot() would be the way to go.

Re: Getting Compared and Success image Validation to show

Posted: Tue Aug 17, 2010 7:41 am
by artur_gadomski
Doesn't Imaging.CaptureCompressedImage capture an element from the screen?
You can do the same by providing element to Screenshot method.

If you want show image stored in a repository, then I don't know how to do that.

Re: Getting Compared and Success image Validation to show

Posted: Tue Aug 17, 2010 1:41 pm
by Support Team
Hi,
artur_gadomski wrote: If you want show image stored in a repository, then I don't know how to do that.
Sorry but at the moment it is not possible to get the screenshots of the repository. Your requested feature "Also show on success the two screenshots" is on our road-map and will be available in a future release of Ranorex. We will provide the possibility to get screenshots from the repository, too.

Regards,
Peter
Ranorex Team

Re: Getting Compared and Success image Validation to show

Posted: Wed Aug 18, 2010 12:46 am
by smalldoorman
Thanks for the Feedback, I'll look forward to the new release.