Login   /   Register

Change QTP’s automatic object-naming convention

November 17th, 2008 by Yaron Assa
     1 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 5
Loading ... Loading ...

Have you ever got frustrated with the arbitrary names QTP give to test-objects?

When you want it to take the name from the “HTML ID”, it takes it from the the object’s “CLASS”; When you want it to take the “PROG ID”, it takes it from the “NATIVECLASS”; and in general, it seems that QTP has a very poor logic when it comes to choosing Test-Object names.

Actually, QTP has a very good logic, it’s just the it works on avarage, and is bound to fail in some applications. Luckily, we can override it, and force QTP to name objects according to the properties we choose. This QTip will show you how.

Changing the maximum length of an object’s logical name

November 15th, 2008 by Yaron Assa
     1 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 5
Loading ... Loading ...

Have you ever wanted a little extra room for your objects’ logical name?

Well, now you can use all the room you’d like by using this QTip!

Creating a test-session instance of The Extern object

November 8th, 2008 by Yaron Assa
     1 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 5
Loading ... Loading ...

Chad Ullman offers this great QTip, that makes working with external Win32 DLL’s much MUCH easier:

QTP’s Extern object is extremely useful for extending the power of QTP by exposing all of the Win32 API. However, because Extern is a reserved object in QTP, it is instantiated once when QTP starts and persists through all your test runs, and this can cause all sorts of problems. Luckly, Chad shares his simple yet very effective QTip for overcoming these problems.

Constructor Arguments in VBScript!

October 10th, 2008 by Yaron Assa
     2 votes, average: 2 out of 52 votes, average: 2 out of 52 votes, average: 2 out of 52 votes, average: 2 out of 52 votes, average: 2 out of 5
Loading ... Loading ...

Our Class Inheritance Parser has just received a major update. Among the changes is the support for Constructor Arguments.

Most programming languages allow you to pass parameters when you create an instance of your class. These are called constructor arguments. VBScript’s constructor (the Class_Initialize sub) can not receive parameters, so usually we must resort to solutions as a “Build” or “Start” sub, in addition to the actual constructor, in order to relay the parameters.

Well, No more! The class parser allows support for constructor arguments in the most native and fluent manner.

QTP 10 live demonstration breakdown

August 16th, 2008 by Yaron Assa
     4 votes, average: 4.75 out of 54 votes, average: 4.75 out of 54 votes, average: 4.75 out of 54 votes, average: 4.75 out of 54 votes, average: 4.75 out of 5
Loading ... Loading ...

Solmar Knowledge Networks attended HP software’s Israeli CAB meeting. We were presented with a quite advanced version of QTP 10 – Atlantis , and unlike the presentation given at HP Software Universe, this was an actual live presentation, which gave us a closer look at some of the features and rumors around the version. Here are our impressions.

Save QTP report as a single HTML file

August 4th, 2008 by Yaron Assa
     4 votes, average: 3.75 out of 54 votes, average: 3.75 out of 54 votes, average: 3.75 out of 54 votes, average: 3.75 out of 54 votes, average: 3.75 out of 5
Loading ... Loading ...

A neat trick to export the native QTP results into a single, simple HTML file.

Embedded Screen-shots in QTP - Now Working on QTP9.5

July 26th, 2008 by daniva
     2 votes, average: 5 out of 52 votes, average: 5 out of 52 votes, average: 5 out of 52 votes, average: 5 out of 52 votes, average: 5 out of 5
Loading ... Loading ...

A few months ago, I’ve posted an embedded screenshot solution at the following article.

After QTP9.5 was released, the solution had suddenly stopped working. After some research and thank to Stefan Thelenius posting a MetaDescription for QTP reports, I’ve found a solution for the problem.

The original article has been updated - here.

A community developed feature to be integrated into QTP 10!

July 23rd, 2008 by Yaron Assa
     3 votes, average: 4.67 out of 53 votes, average: 4.67 out of 53 votes, average: 4.67 out of 53 votes, average: 4.67 out of 53 votes, average: 4.67 out of 5
Loading ... Loading ...

HP will integerate a feature developed by Tarun Lalwani in the next release of QTP.

QTP Intellisense Resizer

July 6th, 2008 by Yaron Assa
     2 votes, average: 5 out of 52 votes, average: 5 out of 52 votes, average: 5 out of 52 votes, average: 5 out of 52 votes, average: 5 out of 5
Loading ... Loading ...

Tarun Lalwani has created a very interesting tool, that can offer a real improvement to QTP programmers - a resizer for the QTP intellisense popup.

Israel’s HP Universe report

July 2nd, 2008 by Yaron Assa
     4 votes, average: 4 out of 54 votes, average: 4 out of 54 votes, average: 4 out of 54 votes, average: 4 out of 54 votes, average: 4 out of 5
Loading ... Loading ...

A review of the Israeli HP Universe convention, and the new features in QTP 10 (code named - Atlantis).

Running QTP on 64bit .NET Applications

June 24th, 2008 by Yaron Assa
     1 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 5
Loading ... Loading ...

This QTip, by Benny Abergel, will allow you to automate most 64Bit .Net Applications with QTP, even though QTP cannot record 64Bit applications!

IE+Kaspersky+QTP = Troubles

June 20th, 2008 by Yaron Assa
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

QTP starts crashing your Internet Explorer? It might be time to uninstall your firewall.

Handling Java Arrays

June 19th, 2008 by Yaron Assa
     4 votes, average: 4.75 out of 54 votes, average: 4.75 out of 54 votes, average: 4.75 out of 54 votes, average: 4.75 out of 54 votes, average: 4.75 out of 5
Loading ... Loading ...

Tsachi Nimni reveals undocumented methods for reading and manipulating java arrays inherently in QTP.

Set a custom directory for QTP tests

April 25th, 2008 by Yaron Assa
     4 votes, average: 4.25 out of 54 votes, average: 4.25 out of 54 votes, average: 4.25 out of 54 votes, average: 4.25 out of 54 votes, average: 4.25 out of 5
Loading ... Loading ...

This QTip will show you how to change QTP’s default test directory, thus freeing you from endlessly browsing for the relevant directory whenever you save / open a test.

Viewing and Editing Environment Complex Parameter Values

April 20th, 2008 by daniva
     2 votes, average: 4.5 out of 52 votes, average: 4.5 out of 52 votes, average: 4.5 out of 52 votes, average: 4.5 out of 52 votes, average: 4.5 out of 5
Loading ... Loading ...

When you click the View/Edit Complex Value button for a parameter with a value that cannot be displayed entirely in the Value box, the Edit Complex Value dialog box displays the full contents of the value.

QTP running on Mac OS-X (sort of)!

April 17th, 2008 by Yaron Assa
     4 votes, average: 4.5 out of 54 votes, average: 4.5 out of 54 votes, average: 4.5 out of 54 votes, average: 4.5 out of 54 votes, average: 4.5 out of 5
Loading ... Loading ...

Well, of course I’m lying (sort-of). QTP can’t really run natively on Macs.
However, this picture was really captured on my new MacBook-Pro laptop, and I really had QTP running on it (just like I’m writing this post from Windows-Live-Writer on it). No Photoshop tricks were involved (other than converting the image to JPG).
The […]

Working with DOS command line

April 16th, 2008 by daniva
     9 votes, average: 4.44 out of 59 votes, average: 4.44 out of 59 votes, average: 4.44 out of 59 votes, average: 4.44 out of 59 votes, average: 4.44 out of 5
Loading ... Loading ...

The objectives of this article are :

Learn how to use DOS command lines in QTP.
Alternative complex tasks.
Alternative .NET methods.

Report hierarchical events in QTP log

April 11th, 2008 by Yaron Assa
     4 votes, average: 4.25 out of 54 votes, average: 4.25 out of 54 votes, average: 4.25 out of 54 votes, average: 4.25 out of 54 votes, average: 4.25 out of 5
Loading ... Loading ...

Motivation
The QTP native log has many drawbacks, especially if your scripts relay heavily on Functions. While Actions are reported in an hierarchical structure (i.e. nested according to their call chain), events reported by function are reported in a flat, unsorted manner. This can be illustrated by the following example:

The following QTip will allow […]

Parameter exists?

April 7th, 2008 by daniva
     1 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 5
Loading ... Loading ...

The following function will return True if a parameter ( column ) exists in a specific datasheet or False otherwise.

Changing License Type

April 7th, 2008 by daniva
     1 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 5
Loading ... Loading ...

Need to change license type from “concurrent” to “seat” or from “seat” to “concurrent”?

Minimize QTP

April 6th, 2008 by daniva
     7 votes, average: 3.43 out of 57 votes, average: 3.43 out of 57 votes, average: 3.43 out of 57 votes, average: 3.43 out of 57 votes, average: 3.43 out of 5
Loading ... Loading ...

Sometimes when QTP is running the QTP application is in front of the AUT. and you can’t see what is happening on the AUT.

Parameter exists?

April 1st, 2008 by daniva
     2 votes, average: 3.5 out of 52 votes, average: 3.5 out of 52 votes, average: 3.5 out of 52 votes, average: 3.5 out of 52 votes, average: 3.5 out of 5
Loading ... Loading ...

The following function will return True if a parameter ( column ) exists in a specific datasheet or False otherwise.

Changing License Type

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

Need to change license type from “concurrent” to “seat” or from “seat” to “concurrent”?

Reserved Objects as an env. object replacement

March 30th, 2008 by Yaron Assa
     5 votes, average: 5 out of 55 votes, average: 5 out of 55 votes, average: 5 out of 55 votes, average: 5 out of 55 votes, average: 5 out of 5
Loading ... Loading ...

Today we’re gonna look at QTP’s internal mechanism for creating singleton COM objects, called Reserved Objects; And we’ll see how Reserved Objects can be used to improved and simplify our scripts.
Well, that was a heavy title… let’s see if we can break it down:1. A COM object is any object you can create via CreateObject […]

A Fresh Look on RegisterUserFunc

March 30th, 2008 by Yaron Assa
     1 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 5
Loading ... Loading ...

Background

Today we’re going to deal with an often overlooked feature of QTP – RegisterUserFunc. Though RegisterUserFunc can offer some real-world benefits, newcomers to the QTP world are unfamiliar with it, and QTP experts look down on it (when comparing it to their custom frameworks). I intend to shed some new light on this feature and […]

VS2008 & PDM.DLL dramatically improves QTP’s debug engine

March 30th, 2008 by Yaron Assa
     2 votes, average: 4.5 out of 52 votes, average: 4.5 out of 52 votes, average: 4.5 out of 52 votes, average: 4.5 out of 52 votes, average: 4.5 out of 5
Loading ... Loading ...

Yesterday I was in for a very pleasant surprise - I’ve just installed Visual Studio 2008, and was working on a QTP test, when I’ve noticed a something strange with QTP’s Debug view.
Usually when you add a watch to an Object, QTP will present it as an enigmatic “<Object>”, with no further description. If you’re […]

QTP 9.5 Hands-on Review

March 29th, 2008 by Yaron Assa
     2 votes, average: 3 out of 52 votes, average: 3 out of 52 votes, average: 3 out of 52 votes, average: 3 out of 52 votes, average: 3 out of 5
Loading ... Loading ...

This is the official QTP 9.5 review of the AdvancedQTP team which was prepared during the QTP 9.5 beta process - It summarizes dozens of hours on the new version, by all the AdvancedQTP team.