Getting Compared and Success image Validation to show

Ask general questions here.
smalldoorman
Posts: 14
Joined: Thu Aug 12, 2010 10:37 pm

Getting Compared and Success image Validation to show

Post by smalldoorman » Thu Aug 12, 2010 10:40 pm

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.

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Getting Compared and Success image Validation to show

Post by Ciege » Thu Aug 12, 2010 11:05 pm

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
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Re: Getting Compared and Success image Validation to show

Post by artur_gadomski » Mon Aug 16, 2010 6:58 am

I preffer Report.Screenshot() as it puts the screenshot into report by itself.

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Getting Compared and Success image Validation to show

Post by Ciege » Mon Aug 16, 2010 3:57 pm

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.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Re: Getting Compared and Success image Validation to show

Post by artur_gadomski » Tue Aug 17, 2010 7:41 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Getting Compared and Success image Validation to show

Post by Support Team » Tue Aug 17, 2010 1:41 pm

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
.
Image

smalldoorman
Posts: 14
Joined: Thu Aug 12, 2010 10:37 pm

Re: Getting Compared and Success image Validation to show

Post by smalldoorman » Wed Aug 18, 2010 12:46 am

Thanks for the Feedback, I'll look forward to the new release.