Quality Testing

Quality is delighting customers

How can we use XML file data in Data driven framework in qtp.Please tell me with example.

How can we use XML file data in Data driven framework in qtp.Please tell me with example.

Views: 61

Reply to This

Replies to This Discussion

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

RSS

TTWT Magazine

Welcome to Quality Testing!

Keith Klain

 Director - Head of Global Test Center at Barclays

Advertisement

Submit A Job

Submit A Tool

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2013   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service