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 regular expression how will you implement it?
How to retrive data from a data table which is in 3rd row,4th column and place it in main script..like retrive name,date from data table..write script for this.
11 Answers Thatavarti Technologies,
Explain qtp(quick test professional)?
Does QTP supports Linux or Unix OS?.If so which scripting is preferable? Shell we do record and playback
Is there anyone can tell me where I can download free or trial QTP? I tried HP website, it was not there anymore. If someone know, pls send me URL. Tks...
Using Regular expression method some particular value is not present in given value. HOow do use regular expression? Forexample password all number,character ,special character are accepted but (_',)underscore,comma are not used. How do write regular expression.
Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini
difference between GetRoProperry and GetToProperty.and where we've to use exactly those properties
what is meant by Implicit and explicit requirements?
difference between waitProperty & Checkproperty
Hi I have created a table in the MS access database. I want to access the table in this database through QTP. The code is given below. The code is not working.The following error is displayed "Data source name not found and no default driver specified". Any one can correct the code. Thanks in advance. Dim dbconnection, rs Dim ca, sname Set dbconnection = createobject("ADODB.Connection") Set rs = createobject("ADODB.Recordset") dbconnection.open "DSN = MS Access Database","", "" rs.open "select * from Research", dbconnection rs.movefirst If rs.EOF <> True AND rs.BOF<> True then ca = rs("order_number") sname = rs("customer_number") rs.movenext msgbox ca msgbox sname End If
What is test object model in quicktest professional?