Forum Discussion

rushikesh's avatar
rushikesh
Contributor
8 years ago
Solved

I want to compare 100 files present in two folders A and B.

In desktop application with JavaScript, I want to compare 100 files present in two folders A and B. A is having baseline files and B is having generated output result from some test system. After comparison I want a count of changed files in B w.r.t A.

Is there a way do this in Test Complete only ?

Or with help of Araxis Merge and Test Complete can this be done?

 

 

  • If you don't want to mess with the aqFileSystem objects (although, they ARE very useful and powerful), you could always build some sort of script/keyword test using the Stores.Files object. You can put all your baseline files into there and then utilize the methods on the Files object to compare the baseline file to any output file. TestComplete can then actually give you detailed information as to what is different about the files. See https://support.smartbear.com/viewarticle/88929/

2 Replies

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      If you don't want to mess with the aqFileSystem objects (although, they ARE very useful and powerful), you could always build some sort of script/keyword test using the Stores.Files object. You can put all your baseline files into there and then utilize the methods on the Files object to compare the baseline file to any output file. TestComplete can then actually give you detailed information as to what is different about the files. See https://support.smartbear.com/viewarticle/88929/