File comparison feature

Best practices, code snippets for common functionality, examples, and guidelines.
Posts: 1
Joined: Mon Apr 17, 2017 11:50 pm

File comparison feature

Post by shanu » Tue Apr 18, 2017 12:13 am

Hi Team,

I want to validate the PDF export feature on a website and file compare it with another file to make sure its similar. As of an old discussion thread back in 2010, the support team mentioned that Ranorex didn't support file comparisons then. Does it support with the recent release?
The link that you had posted on that thread isn't working now(the article is gone probably). Is there any way I can achieve my verification?
Could you please provide me a link or any documentation to start with?

Your help would be greatly appreciated.


Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: File comparison feature

Post by krstcs » Tue Apr 18, 2017 3:28 pm

Ranorex does not support such a feature currently. If you want to make a feature request you can do so at Please search for similar requests first so there are no duplicates.

The best way to do it given the current situation would be to take a hash of both files and see if they are the same. You should consider using SHA-2, which should have better collision avoidance. If you need help with this you can Google ".net get SHA-2 hash of file".
Shortcuts usually aren't...