preload

QTP-XML service functions (2) – ...

Posted by Albert Gareev on Jul 15, 2009
0
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). ...

QTP-XML service functions (1) – ...

Posted by Albert Gareev on Jul 14, 2009
0
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”. ...

Text File compare in “WDIFF” style (QTP, ...

Posted by Albert Gareev on May 27, 2009
0
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. […] ...

Text File compare in “WDIFF” style (QTP, ...

Posted by Albert Gareev on May 26, 2009
2
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 […] ...

SetChildElementByAttr (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Aug 30, 2008
0
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 ...

GetChildElementValueByAttr (QTP, TestComplete, ...

Posted by Albert Gareev on Aug 28, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns text value of a child XML node found via XPath query. Implementation ...

GetChildElementByAttr (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Aug 27, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns child XML node via XPath query. Implementation ...

ChildElementValueByName (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Aug 20, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns text value of a child XML node. Implementation ...

ChildElementByName (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Aug 19, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns child node by tag name. Implementation ...

SetXMLElementProperty (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Aug 14, 2008
0
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 ...

GetXMLElementProperty (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Aug 12, 2008
0
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 ...

p_SetXMLElementAttrText (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Aug 06, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Set value of a child attribute. Implementation ...

p_GetXMLElementAttrText (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Aug 05, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns value of a child attribute. Implementation ...

p_SetXMLElementCDataByIndex (QTP, TestComplete, ...

Posted by Albert Gareev on Jul 25, 2008
0
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 ...

p_SetXMLElementCData (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jul 24, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Remove all existing child CData nodes. Create a new CData node. Implementation ...

p_GetXMLElementCDataByIndex (QTP, TestComplete, ...

Posted by Albert Gareev on Jul 23, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get CData text from a child node specified by index. Implementation ...

p_GetXMLElementCData (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jul 22, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get CData text, combined from all child CData nodes. Implementation ...

p_SetXMLElementTextByIndex (QTP, TestComplete, ...

Posted by Albert Gareev on Jul 19, 2008
0
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 ...

p_SetXMLElementText (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jul 18, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Remove all existing child text nodes. Create a new text node. Implementation ...

p_GetXMLElementTextByIndex (QTP, TestComplete, ...

Posted by Albert Gareev on Jul 17, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get inner text from a child node specified by index. Implementation ...

p_GetXMLElementText (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jul 16, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get inner text, combined from all child text nodes. Implementation ...

p_SetXMLElementCommentByIndex (QTP, TestComplete, ...

Posted by Albert Gareev on Jul 06, 2008
0
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 ...

p_SetXMLElementComment (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jul 05, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Remove all existing comments. Create a new node. Implementation ...

p_GetXMLElementCommentByIndex (QTP, TestComplete, ...

Posted by Albert Gareev on Jul 04, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get comment text from a child node specified by index. Implementation ...

p_GetXMLElementComment (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jul 03, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get comment text, combined from all child comment nodes. Implementation ...

Service Functions – MSXMLDOM (QTP, TestComplete, ...

Posted by Albert Gareev on Jun 30, 2008
0
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 ...

CreateChildElementByName (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jun 25, 2008
0
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 ...

XMLAddProcessingInstruction (QTP, TestComplete, ...

Posted by Albert Gareev on Jun 20, 2008
0
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Add Processing Instruction node. Implementation ...

CreateXMLDOM (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jun 18, 2008
0
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 ...

CreateXMLDOMFromFile (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jun 13, 2008
0
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 ...
Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.