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 TO CONVERT MANUAL TEST CASES IN TO AUTOMATION TEST SCRIPTS EXPLAIN THE PROCESS?

0 Answers   ADP,


Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please

0 Answers   IBM,


hi i have one issue while automating the script using QTP i want scrool down .i cannot do even using scrool down methqad is not working .the object will take WebElement plz is there any code help me

3 Answers  


how do close the task manager through QTP?

2 Answers  


How to check bitmap output value?

0 Answers  






How to export QTP results to an .xls file?

10 Answers   IBM,


What are the problems / difficulties faced when you used Smart Identification ?

2 Answers   Keane India Ltd,


how can you write a script without using GUI in QTP?

5 Answers   Ordain Solutions,


what is run-time object in qtp? explain with example?

2 Answers  


What is fragmentation and paging?

0 Answers  


Explain sub procedure of vbscript.

0 Answers  


plz anybody tell me how to explain the architecture of one particular project.plz give me answer for this.....RAJESH

7 Answers   TCS, Wipro,


Categories