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
What are some test assets and related extensions of qtp?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
What is difference between run time object and test object?
what is clean sweep?
Give the syntax to import/export xls into qtp.
what testplan contents and what test strategy contents,what is the diff b/w them
Explain qtp(quick test professional)?
Which functionalities of QTP used in banking project?
How the smart identification is used in real time?Please explain with an example
What is 'sleep' in sync point?
Where can I find and view run-time data table?
Where we can use the synchronization?
Why to use descriptive programming?
What are the different kinds of test steps?
How will you check that your test cases covered all the requirements?