how to retrieve the xml file data through qtp. can anybody
send script for this..
Answer Posted / mogal
Set oXML = CreateObject("Microsoft.XMLDOM")
XMLFilePath = "C:Book.xml"
oXML.Load (XMLFilePath)
Set BooksNameNode = oXML.SelectNodes("*//book/name/text()") 'Selecting all name nodes under book node
For i = 0 To (BooksNameNode.Length - 1)
BookName = BooksNameNode(i).NodeValue
MsgBox BookName
Next
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression
What is a Patch in QTP?
How to release all resources file from the QTP?
How does quicktest professional identifies the object in the application?
What are the key elements available in test result window?
What are the differences between quicktest professional (qtp) and winrunner?
what kind of frame work you used in your last project?
How can you write the scripts that operate on different objects depending on run-time information?
How can you exit from an action?
what is Property......End Property loop? how to write sript for it in QTP
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
What is the qtp testing process?
Is it possible to call win runner script in qtp?
if our qtp vb Script may be Currepted then What we want do?
What is use of object spy?