Example: Search for matching value from WinTable object class in QTP

Lets take a scenario when you have to match a column value or a row from a object class of wintable or webtable.  The checkpoints or output value may not be effective, and getROProperty does not work in those situation. The best way is to scan the winTable each row by row and columns, and match with the expected value. [...]

More on page 45

Example: Regular expression using descriptive programming

 Regular expression is mostly use to solve the dynamic object problem in Quick Test Pro. There are two ways to do those are using Object Repository and descriptive programming. But this post address a separate issue we may solve through regular expression and VB script for QTP tests. There some situation when we have to [...]

More on page 44

Issue: ODBC driver does not support the requested properties - error displays in QTP

Issue: Error Message:  ODBC driver does not support the requested properties.
Reason: The above error message shows up in QTP if the SQL statement is not properly written in VBScript/ QTP.
Solution: Write SQL statement properly using right format.  Special care required for statement that uses parameter values.  The following example executes an query that accepts parameter app [...]

More on page 43

Disable Auto Correlation - HP LoadRunner

Clear the “Enable Correlation during Recording” option.  The web_reg_save_param functions get automatically recorded if the “Enable Correlation during Recording” option is selected. This option is enabled by default.
To disable the feature, clear “Enable correlation during recording” option under the Recording Options -> Correlation.

More on page 51

Example: Control the Keyboard in Quick Test Pro using WSH

There are situation when automation has difficulties navigating through the application using objects. One of the way to handle the navigation problem is to use keyboard hot keys, and HP Quick test professional support the keyboard control. We can control keyboard through the low level recording or scripting using Windows Script Host.  The following is an example of navigating through AUT by [...]

More on page 40

Example: Handling dynamic object with Descriptive Programming

Descriptive programming can be very useful for handling dynamic object. An example of great candidate for descriptive programming is the following situation.  The application allows to add new vehicle and then ask for the usage data for example miles used, use of vehicle, primary driver etc.  Based on the number of vehicle the page displays those vehicles.  [...]

More on page 39

Overview of Object Repository in QTP

Object repository is the central part of HP/ Mercury test automation tool Quick Test Professional. It works like the brain of QTP, and stores all the object with properties to identify each object in a unique way. QTP assigns a logical name of an object which can be changed using object repository. It also works [...]

More on page 38

Managing Objects using Object Repository manager in QTP

Object repository manager is a new edition to QTP enables to manage shared object repository more easy way. It enables to manage all shared object repositories at one central location. We can launch object repository manager from QTP menu
Resources > Object Repository Manager

More on page 37

Table Checkpoints in QuickTest Pro (QTP)

Quick Test Pro Comments (0)

Table Checkpoint is used to verify cell data within a table.

Use of Table Checkpoints: For example, taking HP Filight Simulation program contains a table listing all available flights from New York to San Francisco. We can add a table checkpoint to check that the time of the first flight in the table is correct.  Table Checkpoints can be added for WebTable as well as WinTable object.

More on page 67

QTPGuru @ September 4, 2008

QTP Checkpoints: Standard, Image and BitMap

Quick Test Pro Comments (0)

Standard Checkpoint:

Verifies the property value of different types of object such as push buttons, radio buttons, and list boxes in your application or Web page. For example, we can verify whether a push button is enable, or a radio button is checked using standard checkpoint. More on page 61

QTPGuru @ August 14, 2008

Use of TestIteration and ActionIteration Environment Variable in QTP

Quick Test Pro, Quick Test Pro Comments (1)

Why TestIteration? 

A good use of “TestIteration” built in environment variable would be if you want to execute a specific section of Sceipt based on the number of Iteration. For example, if the test runs the first iteration we want to execute Function A and 2nd iteration Function B. More on page 50

SmartTesting @ July 21, 2008

Example: General Functions VBScript for QuickTest Pro

VB Scripts Comments (0)

Here are some useful VBScript functions.  These functions are not application related but very general. The functions description are written on the header. The functions are, random nmber generator, finding difference between two date, return a row number of an excel file with matching value. More on page 47

SmartTesting @ June 28, 2008

Example: Function to switch Object Repository from the Script

Examples, Quick Test Pro, VB Scripts Comments (0)

Sometime there could be multiple object repositories in a test. It is possible the scripts or reusable actions browse through multiple application, and each apps has separate object repository. One of the problem with QTP8.2, we cannot associate multiple repositories at the same time. More on page 49

SmartTesting @ June 24, 2008

Example: VBScript Functions for Reading from and writing to text files

Quick Test Pro, VB Scripts Comments (1)

Sometimes writing result files for automation using Quick Test Pro (QTP) using VBScripts is necessary. There are many different ways to produce result files using Automation tools, and QTP comes with a very user friendly test result.  More on page 48

MrTester @ June 22, 2008

Example: Date related functions - Helpful VBScript in Quick Test Pro(QTP)

Examples, Quick Test Pro, Test Automation, VB Scripts Comments (0)

Date related inputs are troublesome sometimes. While automating a screen that accepts dates (month, day, year) may require different formats and inputs. I was having an issue with day and month inputs when valid format was MM or DD. If you read the month and day from the system it returns a single digit month or day, but the application does not accept a month 6 (June) instead requires 06. More on page 46

SmartTesting @ June 15, 2008