UFT
Introduction to UFT Installation of UFT UFT GUI Recording the application Directory structure and file extension of UFT test Basic UFT concepts Object Spy Test Settings Properties Test Run Settings Environment Recovery Associating library files Object Identification mechanism Object repository Object repository Manager Associating repositories with UFT tests Description programming SystemUtil Datatable CryptDotNetFactory Extern OptionalStep PathFinder MercuryTimer RandomNumber Recovery Reporter RepositoriesCollection TextUtil XmlUtil Launching applications Loading ini fileDifference between QFL and VBS file Automating web applications automating Windows applications Err object Recovery Scenarios Handling Databases Mathematical operations Create new Excel workbook file Read and Edit Excel workbook Delete excel workbook file Launching the UFT using Script UFT Vs Selenium UFT Vs Appium UFT vs LeanFT Limitations and drawbacks of UFTXmlUtil Object in UFT
XMLUtil object is used to work with XML files in UFT. Look at below XML file.
<cars>
<car>
<name>i10</name>
<price>2222</price>
</car>
</cars>
You can read above XML file using XMLUtil object using below script.
Set xmlObj = XMLUtil.CreateXML()
xmlObj.LoadFile("car.xml")
Msgbox xmlObj.ToString()
Set cars= xmlObj.ChildElementsByPath("//cars//car//name")
msgbox cars.Count
'iterate through the collection of cars
For i = 1 to cars.Count
msgbox cars.Item(i).Value()
Next
Complex problems, Simple Solutions