preload

QTP-XML service functions (3) – ChildAttributeByName

Posted by Albert Gareev on Jul 16, 2009
0
Parent page: Service Functions – XML (QTP, VBScript)  Description Returns XML child attribute (as XMLAttribute object reference) specified by a name. Attribute name duplication within the same node is not allowed by XML rules. If there is no attribute with the name specified then “Nothing” is returned. ...

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”. ...

DotNetFactory interface functions – create ...

Posted by Albert Gareev on Jun 18, 2009
2
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Used resources Service Functions – String (QTP, VBScript) Implementing optional and default parameters Create TextBox along with the Prompt Label and place on the GUI Form Create ComboBox along with the Prompt Label and place on the GUI Form Create Button, assign the event, and place on the GUI […] ...

DotNetFactory interface functions (6) – Create ...

Posted by Albert Gareev on Jun 17, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a basic Form and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object. […] ...

DotNetFactory interface functions (5) – Create ...

Posted by Albert Gareev on Jun 16, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a ComboBox (Dropdown Listbox/InputBox Object) and assign required properties within one line by calling the function below. The function has one mandatory parameter (list of available selection items – packed in the Dictionary object) and a set of optional parameters […] ...

DotNetFactory interface functions (4) – Create ...

Posted by Albert Gareev on Jun 15, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a CheckBox and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object. Currently […] ...

DotNetFactory interface functions (3) – Create ...

Posted by Albert Gareev on Jun 14, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a TextBox (single-line Text Input object) and assign required properties within one line by calling the function below. The function has only optional parameters provided in the Dictionary object. Currently supported optional parameters: TextBox Width and Height. TextBox Coordinates – […] ...

DotNetFactory interface functions (2) – Create ...

Posted by Albert Gareev on Jun 13, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a label and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object. Currently […] ...

DotNetFactory interface functions (1) – Create ...

Posted by Albert Gareev on Jun 12, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a button and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object. Currently […] ...

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 […] ...

Excel File Worksheet compare (QTP, VBScript)

Posted by Albert Gareev on May 25, 2009
0
Original date: 19 Jan 2009, 2:00pm Parent page: Service Functions – Excel (QTP, VBScript) Excel application must be installed on the PC. Comparison goes cell by cell within the occupied range. Marks mismatching cells red. Both workbooks must exist and be defined as the full path with file. Both worksheets must exist and may be […] ...

AssociateRecords (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jan 23, 2009
0
Parent page: Service Functions – Dictionary (QTP, TestComplete, VBScript) Description Converts a string of comma-separated sets of parameters. Example: “User1 {login=john_doe, password=john1}, User2 {login=jane_doe, password=jane1}” Implementation ...

Clone/Copy/Release Dictionary Parameters (QTP, ...

Posted by Albert Gareev on Jan 14, 2009
0
Parent page: Service Functions – Dictionary (QTP, TestComplete, VBScript) Description 1. Clone Dictionary object with all parameters 2. Copy parameters from one Dictionary to another 3. Release objects associated to Dictionary keys Implementation CloneParameters CopyParameters  ReleaseParameters ...

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

Posted by Albert Gareev on Jan 09, 2009
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.  Basic Operations AssociateParameters (QTP, TestComplete, VBScript) ParametersToStr (QTP, TestComplete, VBScript) Clone/Copy/Release Dictionary Parameters (QTP, TestComplete, VBScript) Advanced Structures AssociateRecords (QTP, TestComplete, VBScript) Mapping Excel col ...

ParametersToStr (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jan 03, 2009
0
Parent page: Service Functions – Dictionary (QTP, TestComplete, VBScript) Description Does exactly opposite what AssociateParameters does – converts a Dictionary back to the string of pairs. Special characters are treated. Implementation ...

AssociateParameters (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jan 02, 2009
0
Parent page: Service Functions – Dictionary (QTP, TestComplete, VBScript) Description Converts a string of comma-separated pairs “a=1, b=2, c = 3” to a Dictionary object. Spaces will be trimmed. Special characters: “=”  “,” – can be escaped with backslash. Replace special characters in the string  – associate pairs – replace characters back. Implementation ...

Managing Recovery Scenarios (QTP, VBScript)

Posted by Albert Gareev on Dec 16, 2008
0
As promised, I’m writing more detailed post on QTP Recovery Scenario management. Overview Exception / Event Handlers in QTP are declared as “Recovery Scenarios” through wizard dialogs and editable with Recovery Scenario Manager. All exception handlers must be added to test script to use them. Programmatically exception handlers are accessible through Recovery object. During run-time, exception handlers can […] ...

A little automation for VBScript OOP (2)

Posted by Albert Gareev on Nov 27, 2008
0
Generate code for Property Let / Property Get / Property Set methods of Delegator Object What to use 1. MS Excel worksheet as input / output interface 2. MS Excel VBA macro to generate source code 3. Input parameters Property Name – External name (used as Property Let / Get name) Parent Class – Name of […] ...

A little automation for VBScript OOP (1)

Posted by Albert Gareev on Nov 25, 2008
0
Generate code for Property Let / Property Get / Property Set methods What to use 1. MS Excel worksheet as input / output interface 2. MS Excel VBA macro to generate source code 3. Input parameters Property Name – External name (used as Property Let / Get name) Parent Class – Skip. Used in only with […] ...

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 ...
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.