Login   /   Register
QTP

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!

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.

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!

Changing script data “On the fly”

June 4th, 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 article explains how to input new data into the script during runtime, without hanging the script execution flow.

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.

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

Embedded Screenshot on QTP Report

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

Almost every test object in QTP supports the method CaptureBitmap even the Desktop object.

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.