how to retrieve the xml file data through qtp. can anybody
send script for this..

Answers were Sorted based on User's Feedback



how to retrieve the xml file data through qtp. can anybody send script for this.. ..

Answer / prasad

Using QTP output value

Is This Answer Correct ?    1 Yes 0 No

how to retrieve the xml file data through qtp. can anybody send script for this.. ..

Answer / 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

how to retrieve the xml file data through qtp. can anybody send script for this.. ..

Answer / aiswaryan

eg: giving input in the google search dialog box thro xml
data.
<Environment>
<Variable>
<Name>googlesearchfor</Name>
<Value>bike</Value>
</Variable>
</Environment>
add the above xml file in Test -> setting -> environmetn ->
userdefined.
go to keyword view of your recorded script (already
recorded). click the drop down button in the 'value' column
and select the environment parameter from the list.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

how you will do cookie testing using QTP?

2 Answers  


How to analyzing test results using quicktest professional (qtp)?

0 Answers  


How to load the object repository at run time?

9 Answers   TCS,


What is object spy in quicktest professional (qtp)?

0 Answers  


How to capture the tooltip of webelement,if there are two values displayed in tooltip of webelement?

1 Answers  






tell me the script for envirnment value parameeter with an example. which situation envirnment valu parameter is used

2 Answers   HCL,


What is your role and responsibilities in QTP with your current organization?

1 Answers   Oracle,


What is quicktest professional?

0 Answers  


How to handle Run-time errors?

2 Answers  


What is the difference between property and method?

2 Answers  


How to find the path of folder in which the test is saved in qtp?

0 Answers  


Explain about datafile/verification of date file when file is not available in local system?

0 Answers  


Categories