Parent page: Service Functions – XML (QTP, VBScript) Description Returns scalar value of the XML child node specified by an xml tag name. If there are multiple objects with the same tag, returns value of the first reference. If there are no objects with the tag specified returns “” (empty string). ...
Parent page: Service Functions – XML (QTP, VBScript) Description Returns XML child node (as XMLElement object reference) specified by an xml tag name. If there are multiple objects with the same tag, returns the first reference. If there are no objects with the tag specified returns “Nothing”. ...
Original date: N/A The post has been mostly recompiled from the comments. Displaying Text File comparison results in an embedded report. Refer to Text File Compare functions used to see how XML file is generated. Sample requirements to show comparison results stored in XML as a web-page (HTML). 1. Show file stats saved in xml file. […] ...
Original date: 26 Jan 2009, 1:30pm Line by line, and word by word comparison isn’t a big problem. But how conveniently show the results? With WinRunner comparison and reporting has been implemented utilizing WDIFF program. With QTP we can do the same using XML-XSL technology. The function below performs comparison of 2 text files generating […] ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Sets text value for the child XML node specified via XPath query. Note: creates a new XML node if nothing was found. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns text value of a child XML node found via XPath query. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns child XML node via XPath query. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns text value of a child XML node. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns child node by tag name. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Dispatcher type function. Sets child node by name: attribute, text, comment, CData See Test Code section for examples. Implementation Test Code ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Dispatcher type function. Reads child node by name: attribute, text, comment, CData See Test Code section for examples. Implementation Test Code ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Set value of a child attribute. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns value of a child attribute. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Iterate to index. Change value for existing CData node. Otherwise create new child nodes till index. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Remove all existing child CData nodes. Create a new CData node. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get CData text from a child node specified by index. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get CData text, combined from all child CData nodes. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Iterate to index. Change value for existing text node. Otherwise create new child nodes till index. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Remove all existing child text nodes. Create a new text node. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get inner text from a child node specified by index. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get inner text, combined from all child text nodes. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Iterate to index. Change value for existing comment. Otherwise create new child nodes till index. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Remove all existing comments. Create a new node. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get comment text from a child node specified by index. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get comment text, combined from all child comment nodes. Implementation ...
In the code examples I present I often refer to routine functions. In my framework I have specialized libraries to call from. In my blog I maintain the similar structure. XML DOM Root Object CreateXMLDOMFromFile CreateXMLDOMFromString CreateXMLDOM Special Nodes XMLAddProcessingInstruction Create/Find/Modify XML Element GetXMLElementProperty SetXMLElementProperty CreateChildElementByName ChildElementByName ChildElementValueByName ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Create and add (append) child element node to parent with the tagname and inner text specified. Implementation Test Code ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Add Processing Instruction node. Implementation ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Create XML DOM object with a root tag specified. If root tag is invalid returns Nothing. Implementation Test Code ...
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Create XML DOM object by loading it from a file. If file doesn’t exists returns Nothing. Implementation ...