Posted by Albert Gareev on May 25, 2009
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 […] ...
Posted by Albert Gareev on May 23, 2009
Original date: 5 Dec 2008, 1:23pm Parent page: Service Functions – Excel (QTP, VBScript) ...
Posted by Albert Gareev on May 22, 2009
Original date: 4 Dec 2008, 1:49pm ...
Posted by Albert Gareev on Jan 23, 2009
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 ...
Posted by Albert Gareev on Jan 14, 2009
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 ...
Posted by Albert Gareev on Jan 09, 2009
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 ...
Posted by Albert Gareev on Jan 03, 2009
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 ...
Posted by Albert Gareev on Jan 02, 2009
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 ...
Posted by Albert Gareev on Dec 16, 2008
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 […] ...
Posted by Albert Gareev on Dec 10, 2008
A company hired another “automated tester”… Process description In the nutshell, the actual job description is: Bring up an application-under-test Start “testing” script Babysit “testing” script, i.e. manually click/type on the GUI when the script is stuck, then resume script After execution is done, review “test logs” Reviewing the “test logs” includes: Go through […] ...
Posted by Albert Gareev on Dec 04, 2008
Error Handling In WinRunner, every GUI function returns result – an integer value. Checking status of an operation is as simple as single line: In QTP, most of GUI operations do not return code but execution stops if an error is encountered. To keep execution flow stable, errors have to be handled in a bit […] ...
Posted by Albert Gareev on Nov 27, 2008
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 […] ...
Posted by Albert Gareev on Nov 25, 2008
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 […] ...
Posted by Albert Gareev on Oct 10, 2008
For Test Automation, Functional Decomposition is a test flow analysis and test design technique. And yet somehow it is often confused with structural programming. Decomposition of Test Flow Applying Functional Decomposition technique in Test Flow Analysis means splitting (decomposing) a testing scenario into its constituent parts, that are logically complete and data-wise isolated. Some of these parts […] ...
Posted by Albert Gareev on Sep 20, 2008
Hardware Requirements QTP is much more greedy on resources. Don’t plan to reuse your old WinRunner machines. You’ll have to retire them with WinRunner. Give at least twice as more RAM than recommended by QTP specs, especially for debug and development machines. Changing screen resolution might affect QTP’s GUI recognition. Software Requirements WinRunner had an annoying […] ...
Posted by Albert Gareev on Sep 15, 2008
Integrity Support of XML, ADO, DotNET, and other services through COM is a greatest advantage of QTP. In WinRunner, there was only an awkward workaround of placing external calls through “dos_system” function and exchanging data through files. Data Model In WinRunner, original data source was text file. Later Excel spreadsheets support was added through “ddt_” […] ...
Posted by Albert Gareev on Sep 10, 2008
GUI Mapping In general, QTP supports “GUI Map” concept introduced in WinRunner. GUI Maps are called “Object Repositories” and editable in “Object Repository Manager”. “GUI Spy” became “Object Spy”. Two more things about Object Repositories: it’s a real pain to copy/merge GUI objects across checkpoint data included Programming Language C-like TSL used in WinRunner didn’t ...
Posted by Albert Gareev on Aug 30, 2008
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 ...
Posted by Albert Gareev on Aug 28, 2008
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns text value of a child XML node found via XPath query. Implementation ...
Posted by Albert Gareev on Aug 27, 2008
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns child XML node via XPath query. Implementation ...
Posted by Albert Gareev on Aug 20, 2008
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns text value of a child XML node. Implementation ...
Posted by Albert Gareev on Aug 19, 2008
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns child node by tag name. Implementation ...
Posted by Albert Gareev on Aug 14, 2008
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 ...
Posted by Albert Gareev on Aug 12, 2008
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 ...
Posted by Albert Gareev on Aug 10, 2008
What is it? IDEF0 is abbreviation for Integration Definitions for Functional Modeling [of Systems]. Zero means type of modeling. (IDEF0 – function modeling, IDEF1 – information modeling, IDEF2 – dynamics modeling). How it looks? Image courtesy: Wikipedia How it works? Image courtesy: Berry College ...
Posted by Albert Gareev on Aug 06, 2008
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Set value of a child attribute. Implementation ...
Posted by Albert Gareev on Aug 05, 2008
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Returns value of a child attribute. Implementation ...
Posted by Albert Gareev on Jul 25, 2008
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 ...
Posted by Albert Gareev on Jul 24, 2008
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Remove all existing child CData nodes. Create a new CData node. Implementation ...
Posted by Albert Gareev on Jul 23, 2008
Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript) Description Get CData text from a child node specified by index. Implementation ...