How can we test an XML using QTP?

I have been to an interview, where they have given me an
XML which had 15 values and they have given those values on
a separate page. They asked me to write a QTP script to
check the XML is having those particular 15 values.

Answer Posted / mats

You can test xml using xml nodes.

First you need to create xml object.

Set xmlobj=Createobject("Microsoft.xmldom")

Once the object is created you need to know how many nodes
are there in xml file.

Accordingly we need to specify the xml node path and
retrieve the values.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1451


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1889


What are the Application Functions available in QTP?

1467


Define Canvas view of UFT?

605


Where to use function or action?

664






When to use descriptive programming?

582


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1341


how to prepared for first for the first interview?

1788


what is the latest version of QTP? Main difference between 9.2 and 10 version

1537


please any one can explain the keyword driven framework. with gmail example.

1613


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1413


What are the various automation frameworks available in qtp?

497


What is synchronization point in QTP?

668


Explain the features and benefits of quick test pro(qtp)?

507


What is the difference between analog and low level recording?

608