how to retrieve the xml file data through qtp. can anybody
send script for this..
Answers were Sorted based on User's Feedback
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 |
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 |
what is the difference between Table checkpoint and Database checkpoint in QTP
QTP Data Table Having 10 records with 10 to 15 fields(lets say).now i want to get alternative records from datatable.pls can any one answer it?
How to export QTP results to an .xls file?
I am having trouble understanding #1 how to paramaterize a userid and password that I need to call in about 25 existing scripts. I need to know how to Create a Reuseable action for 25 existing scripts that will call the exact same userid and password? I need to know how to create a Reuseable action and then have it called by existing scripts being run in a batch.
how to get the particular chr in an array list the question is ....i have an array like this ABCD EBCF GBCH IBCJ HERE I NET TO GET ONLY "BC" FROM ALL HOW TO GET IT HELP ME ANY ONE THANKS
what is difference between application testing and product testing?
How to fetch web elements count from Google Page which contains letter "e"
QTP is identifying all windows application objects(i.e. winbutton,winconbobox,etc) as winobjects.How to handle this? Is there any way to add our own properties to identify objects?
what is the difference btn risks & Therads in the Test plan documentation?
Hi,i have 3 years of experience in manual and Automation qtp.present i am searching for job in automation qtp 2Yrs,How to Explain the interviwer Roles and Responsibilites.please help me.
It is regarding VBScript, how to export our function results to ExcelSheet through VBscripting. Ex: I have written add function, that result should export to Excel.
how we can take data in the username field text box into variable in web application explain with example and give all functions to get data into variables