Login   /   Register

Update: A Pitfall for Beginners when Working with a Dictionary

June 24th, 2008 by Meir Bar-Tal
     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 ...

Dear readers,

I wish to bring to your attention an updated version of a previous article on “A Tip for Beginners when Working with a Dictionary”.

Yours,
Meir

Add Resources to a QTP Test

June 6th, 2008 by Meir Bar-Tal
     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 ...

Working with external function libraries (e.g., vbs files) is a common practice among advanced QTP practitioners. This feature of QTP enables developers to encapsulate functionality that needs to be reused in the form of functions, subroutines, and even classes. It is even possible to set the currently loaded function libraries as default, and hence every […]

Add New Methods to Objects

May 30th, 2008 by Meir Bar-Tal
     3 votes, average: 3.67 out of 53 votes, average: 3.67 out of 53 votes, average: 3.67 out of 53 votes, average: 3.67 out of 53 votes, average: 3.67 out of 5
Loading ... Loading ...

This short article complements a previous one I have published on how to Override the Object Exist Property. As previously indicated, one of the most powerful features QuickTest Professional (QTP) provides is the ability to override methods of object classes with custom functions tailored to serve specific purposes (Bar-Tal, 2008b). In this brief article we […]

Override the Object Exist Property

May 18th, 2008 by Meir Bar-Tal
     5 votes, average: 4.6 out of 55 votes, average: 4.6 out of 55 votes, average: 4.6 out of 55 votes, average: 4.6 out of 55 votes, average: 4.6 out of 5
Loading ... Loading ...

One of the most powerful features QuickTest Professional (QTP) provides is the ability to override methods of object classes with custom functions tailored to serve specific purposes. For example, the WebEdit.Set method might be expanded to first check if a popup message is open before or after (or both) the set operation took place. This […]

Pad Number String with Zeroes

May 3rd, 2008 by Meir Bar-Tal
     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 ...

Sometimes a numbered list is required, such as a list to populate a ListView, TreeView or one to create sequential files in a folder. One of the main problems is that such lists typically sort the items lexicographically, so that numbered items end-up in the wrong order, such as File_1, File_10, FIle_11, …, File_2, FIle_20, […]

A Pitfall for Beginners when Working with a Dictionary

April 23rd, 2008 by Meir Bar-Tal
     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 ...

When addressing a non-existing key in a Dictionary object, the add method is invoked by default. The problem is that the Windows Script Host does not inform during runtime that there is a missing key. Moreover, the automatically assigned Empty value may cause trouble to our subsequent code execution.

Upcoming - Meir Bar-Tal’s Blog

April 20th, 2008 by Meir Bar-Tal
     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 ...

Dear AdvancedQTP Users,
 
I hereby begin with my own personal blog to be published exclusively at the AdvancedQTP site.
I hope to be able to bring out the best from my extensive experience in the world of software in general and automation especially for the benefit of our growing community.
Please stay tuned for future updates.
 
On this occasion […]

Function Pointers in VBScript

October 22nd, 2007 by Meir Bar-Tal
     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 ...

This 14-page article by Meir Bar-Tal explains in details the benefits and inherent possibilities in wrapping our functions with classes. It further explores the meaning and logical structure of classes, and shows how we can easily implement constructors, event handlers and callback by using class composition and function wrapping.
The different techniques are well illustrated […]