QTP - Not Just For GUI Anymore
QTP - Not Just For GUI Anymore
Ian Fraser
Topics
Web Services
Telnet
FTP
XML
Advantages using APIs
ActiveX Controls.
COM methods and properties
COM properties and methods
Properties don’t take any arguments and can be read/write
value = object.property (read)
object.property = value (write)
Methods are read only if they returns value
'lMsxml2.DOMDocument
Set oInputXmlDoc = CreateObject("Msxml2.DOMDocument")
'loadXML from file
oInputXmlDoc.load("C:\XML_Files_Demo\Weight_Conversion.xml")
…
…
'Send SOAP request
oWinHttpReq.Send oInputXmlDoc
QTP XML Objects
XMLUtil Object
XMLAttribute Object
XMLAttributesColl Object
XMLData Object
XMLElement Object
XMLElementsColl Object
XMLFile Object
XMLItemColl Object
Example: Compare XML files using
QTP objects
Comparison results
Resources:
MSDN http://msdn.microsoft.com/en-
us/library/aa384109.aspx
Stefan Thelenius about Software Testing
http://abouttesting.blogspot.com
QuickTest Professional Help file
Igor Gershovich
E-Mail: [email protected]
Phone: 720-933-9395
www.connectedtesting.com