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 modify the text checkpoint?

0 Answers  


General Ques : At What State u start Automating ? means at what stage we start writing QTP scripts ?

2 Answers  


How u send bugs to dev'lpment team all at once or one by one or waht is the process?

2 Answers   kenexa,


VB scrip has a special command named LBound, which returns the starting index of an arry. What are the possible indexes an array can start with? options are given below. and one only the correct answer. pl select it 1. any index 2. only even non-negative 3. only 0 4. any non-negative integer

1 Answers  


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

0 Answers  


How u prepare Test result summary in QTp?

4 Answers   CGI,


hi everyone today is the first time i saw this website,and hi iam siraj,iam very impressed by seeing evryones response towards questions,iam a newcomer and i have got tryining in testing can anyone please send me some projects relaited to testing.i know it is very confidential but still if u send it will a great help. my mail id venku_krs@yahoo.co.in

1 Answers  


can objects recogonised without repository?

10 Answers   AZTEC,


How to convert non-reusable action into reusable action in QTP?(i know by default QTP will take it as a non-reuable action )(Chandana) plz urgent?

4 Answers   Wipro,


What is the entry and exit point of automation testing

2 Answers   Infosys,


What is the file extension of the code file and object repository file in QTP?

0 Answers  


take one exmple and write on that discriptive programe in qtp?

1 Answers  


Categories