Quality is delighting customers
How can we use XML file data in Data driven framework in qtp.Please tell me with example.
Tags:
Permalink Reply by Subbu on September 18, 2012 at 6:37pm You can do this using XMLUtil object, here is example:
Set doc = XMLUtil.CreateXML()
doc.LoadFile "d:\example.xml"
Set dataSections = doc.CDataSections()
msg = "First I had " & dataSections.Count() & " CDataSections."
newSection = "These characters <> are only allowed in CDATASections"
doc.AddCDATASection newSection
msg = msg + "Now I have " & dataSections.Count() & " CDataSections."
msgbox msg
Director - Head of Global Test Center at Barclays
© 2013 Created by Quality Testing.