File Comparison

Best practices, code snippets for common functionality, examples, and guidelines.
Posts: 1
Joined: Mon Apr 15, 2019 2:16 pm

File Comparison

Post by AUTTester » Mon Apr 15, 2019 2:25 pm

Does the Latest version of Ranorex supports file comparison???

I will have a file generated when we execute the test case and i need to compare the file. Can you please suggest me is there a way to do with ranorex??

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: File Comparison

Post by Support Team » Tue Apr 16, 2019 1:33 pm

Hello AUTTester,

I'm afraid that there is no built-in feature in order to compare two files, but you can implement your own comparison method.
There is a step-by-step article on the Microsoft webpage that describes how to do so.

How to create a File-Compare function in Visual C#

I hope this helps.