Thursday, July 9, 2015

Handling XML's with QTP


-          Handling XML:

http://www.qtpworld.com/index.php?cid=86
 
set obj = CreateObject(“Microsoft.XMLDOM”)
 
Reading/Writing XML:
Load
SelectNodes
Nodes.length
NodeValue




How API testing is done using QTP??
Open test as API
Load WSDL(get it from the website)
Methods are displayed in explorer
drag the methods to canvas
you could see xml(Request and response parameters) on the right side - properties window
Give the input values to the xml in the request xml
Run the tool
You could see result in response xml tags on the right side window
In the result you could clearly see request and response xmls.
Note - Web Service url- WSDL file
Note: Authorization error when you try to import the WSDL file to UFT??

No comments:

Post a Comment