Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

16634 Posts in 4352 Topics- by 28409 Members - Latest Member: RajSarode
 

Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: Compare XMLs    (Read 137 times)
Rohith Vishwanath
User
*
Offline Offline

Posts: 23

Wrking as a Automation Engineer on QTP. Thirst to explore advance options in QTP and leverage that knowlede to solve problem and to share what I have learnt.


« on: December 22, 2009, 01:30:26 AM »

Hello All,
    Currently we have a latest version of a product which is not yet live and we are doing some final validation on the latest one. I am right now stuck with the following problem:

    I have around 500+ XML files stored in a folder which are results of the current version of application and another folder were we have same number of XML files with the same name which are results of the latest version of application. I need to compare these whole XMLs and make a result as to which is are not matching and what elements are not matching.

    Could any one help me with this scenario?
Logged
santhosh baby
User
*
Offline Offline

Posts: 9


QA Engineer@ITPL Bangalore santosh.baby@gmail.com


« Reply #1 on: December 22, 2009, 08:01:25 PM »

Hi Rohith ,
  You take each XML and  verify the Element name Element Value of the corresponding xml xml .
For this You can use Methods Provided by the XMlUtil object.

Regards
Santhosh Baby
Logged

Best Regards,
Santhosh Baby
Personal id := santosh.baby@gmail.com
“   When GOD leads you  to  the edge of the cliff, TRUST  Him Fully,Only one of the two things will happen either HE will catch you when u fall or HE will teach you how to Fly”
Asiq Ahamed
Moderator
Sr. User
*****
Offline Offline

Posts: 287



WWW
« Reply #2 on: December 22, 2009, 09:17:57 PM »

Hi Rohith,
         Please refer the below link,

http://quicktestprofessional.wordpress.com/2008/03/03/compare-2-xml-files/
Logged
Rohith Vishwanath
User
*
Offline Offline

Posts: 23

Wrking as a Automation Engineer on QTP. Thirst to explore advance options in QTP and leverage that knowlede to solve problem and to share what I have learnt.


« Reply #3 on: December 23, 2009, 03:36:02 AM »

Thanks a lot guys!!!!
Logged
Pages: [1]   Go Up
Print
Jump to: